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); 

http://api.jquery.com/val/


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -