Jump to content

save click in table SOLVED with thanks


niche

Recommended Posts

I have a button that toggles the display of a hidden div:

echo '<button class="button0" onclick="showDiv(this.value)" value="itemInfo' . $counterz . '">Item Info</button>';

Is there a simpler way to save that button click to a table than using an ajax call? If so, please describe how you'd do it.

Edited by niche
Link to comment
Share on other sites

Is there a simpler way to save that button click to a table than using an ajax call?
I'm not sure what you're asking for. you mean a table in database? Are you trying to track/store link clicks in JS?
Link to comment
Share on other sites

Yes, without refresh. Is an ajax call the way, or is something easier available?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...