php - Javascript not working on changing textbox value -
i have been banging head on code , can't seem figure out why part of javascript works. here section of code
<input type="hidden" name="v" id="v" value=""/> <input type="hidden" id="what" name="what" value="" /> <td><a href="#" onclick="javascript:document.getelementbyid('v').value='edit_del'; document.getelementbyid('what').value='<?php echo $recipeinventoryid ?>'; document.frmrecipe.submit();"><img src='_images/del.png'></a>
the first edit works (for hidden "v") , submit works second edit ("what") doesn't.
Comments
Post a Comment