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

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -