Jump to content

pass string from html to ajax


fredted40x

Recommended Posts

Hi,

 

Im trying to call a ajax function and send a string that the ajax javascript function can use.

 

So far i have

 

<a href="#dd" onclick="sh()">Fly</a>

 

And i want to send with the link a string e.g. "thanks".

 

How can i send the string and use it in the seperate ajax file?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/199275-pass-string-from-html-to-ajax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.