jQuery pass to input value -
i'm trying pass id hidden input value. id returning right value not passing target input value
$('.delete-customer').click(function(){ var cust_id = $(this).children().attr('id'); var target = $('#remove-item').val(); $(target).text(cust_id); });
hidden input:
<input id="remove-item" type="hidden" name="cid" value="" />
$('.target-val').val(cust_id);
Comments
Post a Comment