assign value to dropdown

Posted by Nagarjun.singarapu under ASP.NET on 8/18/2009 | Views : 1936 | Status : [Member] | Replies : 1
how to assign value to dropdown in javascrip and it will wor mozilla also?

i used code like below but these are not worked in mozilla

document.getElementbyid('ddlname')options.value="352";

&

document.getElementbyid('ddlname')[document.getElementbyid('ddlname').selectedIndex].value="352";

&

document.getElementById('ddlName').selectedindex.value="352";




Responses

Posted by: Raja on: 8/18/2009 [Member] Starter

Up
0
Down
Please go through below article of this website and you should be getting your solution.

http://www.dotnetfunda.com/articles/article72.aspx

Thanks

Regards,
Raja, USA

Nagarjun.singarapu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response