I have a class like this:
<div class="photo" parameter1="custom" parameter2="custom"></div>
I have 4 parameters total.
I need a way to submit this parameters inside my photo div to be used for JQuery code and still have my website W3C compliant. Any ideas?
Set the doctype to HTML5 and use the custom data-* attributes.
<!DOCTYPE HTML>
...
<div class="photo" data-parameter1="custom" data-parameter2="custom" data-parameter3="custom" data-parameter4="custom"></div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With