Tuesday, August 19, 2008

Getting values of textbox in Javascript

In javascript, do not use, document.getElementById("ID"); to get value from the input elements. It works in IE but not in FF.

so use like

var value = doucment.forms[0].txtName.value;

No comments:

Post a Comment