Caiapfas
asked on
URGENT :::: simple javascript question, I need to change the hidden tag from button push 500points
I need to chage this
<input type="hidden" name="pid" value="updateItem" />
to whatever i want from this button push ..
<input type="submit" value="Delete Item" /> <<< this code can not be changed
<input type="hidden" name="pid" value="updateItem" />
to whatever i want from this button push ..
<input type="submit" value="Delete Item" /> <<< this code can not be changed
ASKER
yes the event handler can be in the button and has to be since there are 5 buttons on this page..pleaseh help asap
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Has this question been answered??
I suppose so.
<script>
function dosomething()
{
document.forms["myform"].p
}
</script>
<form name="myform" onSubmit="dosomething();">
<input type="hidden" name="pid" value="updateItem" />
<input type="submit" value="Delete Item" />
</form>