I need to focus out from the textbox when it focus in.
I try to set focus for outer div and its working fine in IE but not in mozilla.
How do I do this?
This is my current code:
<div id="outer"> <input type = "textbox" /></div> Onfocus: document.getElementById("outer").focus()
I have tried all the answers and not worked in all the browsers. And I combined all together in to it.
TextBox.readonly = true;
var curText = TextBox.value;
TextBox.value = "";
TextBox.value = curText;
And its working fine in all the browsers