Good Day!
How do I put value on my hidden field in the row using JavaScript or jQuery?
Heres my js:
function removeRow(){
$('input#deleteId').val("yes");
$(this).closest('tr').hide();
return false;
};
but the code above changes all hidden fields with the class of deleteId on my table, my problem is how can I change the hidden field value of the specific row where I clicked the remove button? My table structure is like this:
<table>
<tr>
<td>itemName</td>
<td>itemPrice<input type="hidden" id="deleteId" /><td>
<td><a href="#">remove</a></td>
<tr>
</table>
and by the wat its an external js file.
Thank you very much for your time!