Removing round corners from the button in jquery mobile -


i have following button markup in single/multiple page jquerymobile page template.

<a href="#" data-role="button" data-icon="arrow-r" data-iconpos="right" >about us</a> 

i need disable round corners of button using button option given in jquerymobile docs.

i have tried $('a').buttonmarkup({ corners: "false" }) in every events such pagebeforecreate, pageinit, pagecreate , mobileinit

i never got working , have been struggling make quite long time. dont want use data attribute data-corners="false" now.

please suggest ideas

this should work: $('a').buttonmarkup({ corners: false }) note "false" should not string.

anyway, if want make default behaviour, try like:

$(document).bind('mobileinit', function(){     $.fn.buttonmarkup.defaults.corners=false; }); 

that should work same having data-corners="false" on every button.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -