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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -