0

hi friends..
please help me with this little code...

i have a html form with a few text boxes and a drop down menu....
On page load I want to blur the drop down menu...

I have blurred the text boxes using

document.getElementById['id-of-text-box'].blur();

i tried the same for select element (drop down menu)
but it aint working...
if someone could let me know or point me to some article it will be of reat help...

thank you in advance!!

4
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by diafol
1

What do you mean by blur, do you mean so the user just can't click it? if you do just do

document.getElementById['id-of-select-box'].disabled=true;

Although I think I might be missing your point entirely.

0

sorry!! next time onwards will post in the right forum...

thank you Gerbiler!! that worked...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.