I am looking to use the delete icon that is built-in to jQuery Mobile.
I know how to use buttons, you just use data-role – but I want to use it inside a plain old span or div.
Is there a way to do this?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can just use a
divwith the classes specified, for exampleUpdate:
The style-sheets for JQM have changed since this was first posted, you can get the same affect by adding the
ui-btn-icon-notextclass to your element (at least as of JQM 1.4.5). Additionally you might need to add aposition:relative;to get it positioned correctly.For example
Here’s a link to the relevant API