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

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -