I have created a link with two states, which will be a default status of [verify=false] and secondary status [verified=true], and will be changed from a manager through an admin page. jquery will toggle this status using SVG icons and change its background position through CSS.
This link icon selection, will only display statically on multiple pages that this/that user has been verified or not by the manager. It is off [false] by default.
The toggling works great, which I am happy with this, but in the 'POST' variable, I am not sure how to get the unique ID for one( and for many in a page?) of the selection if its turned on and to reflect this back on multiple pages. I only need to do the frontend script for this, and then the backend dev will code in C# for the db.
I think I have the foundation layed out in my code, but 'what do I post' and how in an example page do I display this static icon selected from the admin??
I am not well versed with jquery, so I might need some heavy lifting with it. I will be using social icons just for experimenting with here..
Here is a link to my codepen:
http://codepen.io/krystyna93/pen/eZxWgW