When using Jquery Mobile, imagine having 2 button-like elements in an image sprite. These buttons need to be custom buttons within the image sprite:
---------
| button1 |
---------
| button2 |
---------
1.) How can I detect click events for each button within the image sprite? Any elegant solutions are appreciated.
2.) Alternatively, is there another approach that could be taken?
P.S: Unfortunately, there doesn't seem to be an existing API or plugin available for this specific feature, making it a new challenge for me.