Hi, I’ve done some general searching on this but have yet been able to find a consensus answer as to ‘best practice’. Namely I am seeking the best way to define an image as a ‘clickable button’.
I understand there is the ‘input’ ‘image’ method but this seems really to only pertain to a ‘submit’ type button (am I wrong ?) where as I am looking for more of an AJAX related function, or a toggle switch that can perform JS function calls, that also allows ‘active’ and/or ‘hover effects’.
I have seen a number of examples where people have used checkbox items, or radio buttons for this purpose, but it feels a bit like ‘hacking’ things together. Also, just for the moment (unless otherwise it is not possible), I would like to avoid the image being set by the div’s background-image property because my requirement is very strict and tight absolute positioning.
There must be a standard or ‘official’ way of doing this ? Would prefer without JQuery just so as to best know the base case, but with JQ could also be okay too.
Any thoughts ?