Is it possible to send data on button click via ajax and use value on form on same page?

Is it possible to send data on button click via ajax and use value on form on same page?

I have several button each of which will have a data attribute with a different value, I need that value to be sent/used within a form that I have


Source: ajax

Leave a Reply