javascript - How to load a data using ajax-php with parameters -
this question has answer here:
i got link performs javascript function onclick
<input type='hidden' id='name'> <a href='#' onclick='getusers(1)'>click here</a> function getusers(id){ $('#name').val(id); }
whenever click link want pass '1' value of hidden input type.
after want perform ajax use value of hidden input type mysql query.
would possible?
thank you
try this
$('#name').change(function() { $.ajax({ // code here }); });
Comments
Post a Comment