Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery mobile remove formatting on image

I'm using Jquery mobile and have an image at the top of my site designed to link to the home page.

However setting a link on this image causes Jquery mobile to format the image into a button.

I've had a look around but can't find a way to stop this.... anyone got any ideas?

Example with link: http://jsfiddle.net/wDYt6/

Example without link: http://jsfiddle.net/ewn7T/

like image 746
Ashley Avatar asked Dec 21 '22 12:12

Ashley


1 Answers

Found a better answer here: How can i stop jQuery mobile to apply styles to my specific form elements

jQuery Mobile will ignore elements whose data-role attributes are set to none. Therefore, you can simply add these attributes to your markup:

<a href="/" data-role="none"><img src=""></a>
like image 141
Andy Baker Avatar answered Jan 11 '23 13:01

Andy Baker