Hi,
I m trying to accesss the form elements value by getElementById() method of document object.It working fine in Internet Explorer, but in Mozilla firefox its not working.
I write the function in javascript like this.
var pval=document.getElementById(pname).value;
pname is the id of the drop-down list.
Can anybody tell me the correct syntax to write this function for Mozilla Firefox?
|