Mike777077
04-17-2009, 06:54 PM
I am trying to set the value of a regular form input button using the Document Object Model (DOM), however, I am not able to do so in fcirefox, the following code does not work in Firefox but works fine in Internet Explorer.
Please provide some input
<!--- Javascript here --->
function SetValue() {
document.getElmentById("OneButton").value = "New Value";
}
<!-- html here --->
<form method="post">
<input type="button" name="OneButton" id="OneButton" value="First Value" onclick="SetValue();">
</form>
Please provide some input
<!--- Javascript here --->
function SetValue() {
document.getElmentById("OneButton").value = "New Value";
}
<!-- html here --->
<form method="post">
<input type="button" name="OneButton" id="OneButton" value="First Value" onclick="SetValue();">
</form>