javascript - textbox focus out -


I need to focus in the text box.

I try to focus on the external divis and IE its functioning is fine but not in Mozilla.

How do I do this?

This is my current code:

  & lt; Div id = "external" & gt; & Lt; Input type = "textbox" / & gt; & Lt; / Div & gt; Onfocus: Document.getElementById ("External") Focus ()  

I wonder What is the purpose of using a textbox in this case if the user can never write anything inside. Just add a disabled = "disabled" attribute or readonly = "readonly" (if you want to post the value).


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -