Skip to content Skip to sidebar Skip to footer

How To Retrieve Custom Html Attribute In Php Post?

I have a custom Checkbox its made in a Div
The checkbox has toggle on/off and the state attribute changes on c

Solution 1:

The browser is only going to send through input and select tags with the form submission, not div. It sounds like you might want to store your value in a hidden input, IE:

<inputtype='hidden' name='toggle' value='on' />

Then add to whatever javascript you're already using to set the value appropriately.

Post a Comment for "How To Retrieve Custom Html Attribute In Php Post?"