This post has been edited by test.biju: 15 November 2010 - 02:36 AM
focus the element created on the flyhow to focus an element created on the fly
Page 1 of 1
5 Replies - 638 Views - Last Post: 20 November 2010 - 03:57 PM
#1
focus the element created on the fly
Posted 15 November 2010 - 02:34 AM
how to focus an element, which is created on the fly,(document.getElementById('id').focus() is not working in IE 7)
Replies To: focus the element created on the fly
#2
Re: focus the element created on the fly
Posted 15 November 2010 - 03:54 AM
What about IE8 e.g. IE9 ?
IE7 is old and shouldn't be used anymore.
Greetings: Luke
IE7 is old and shouldn't be used anymore.
Greetings: Luke
#3
Re: focus the element created on the fly
Posted 15 November 2010 - 04:53 AM
#4
Re: focus the element created on the fly
Posted 15 November 2010 - 06:30 AM
Are you sure that document.getElementById("id") exists in the first place? That might be the problem. Try this piece of code:
alert(document.getElementById("id"));
alert(document.getElementById("id").tagName);
#5
Re: focus the element created on the fly
Posted 19 November 2010 - 03:19 AM
#6
Re: focus the element created on the fly
Posted 20 November 2010 - 03:57 PM
Believe it or not, people are still using IE6 although it's generally accepted that you can get away without supporting this browser now. IE7 you should definitely still code to support.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|