Welcome Guest, Not a member yet? Register   Sign In
jquery changes style of a button -- unwanted
#1

(This post was last modified: 07-18-2015, 10:35 PM by cupboy.)

A style is being applied to a button I use with jQuery. How do I prevent this? The theme is used for other things so can't remove that, just need to override something in it. I tried removing the smoothness theme and went with another one called no theme but that didn't work. Got that from jqueryui.com -- the button looked fine but the modal dialog was unusable.

Code:
http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css
Code:
// responds to the command button that says "Offer" on it....
   $( "#create-offer" ).button().on( "click", function() {
     //alert('offer button clicked!');
     dialog.dialog( "open" );      
   });
Code:
   $data = array(
       'name'          => 'create-offer',
       'id'            => 'create-offer',
       'type'          => 'button',
       'content'       => 'Edit Offer'
     );      

   echo form_button($data);
Reply


Messages In This Thread
jquery changes style of a button -- unwanted - by cupboy - 07-18-2015, 10:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB