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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -