1 Replies - 958 Views - Last Post: 04 September 2012 - 11:49 AM

#1 notice88  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 83
  • Joined: 21-December 11

<button>, <input type ='submit'>, doesn't

Posted 04 September 2012 - 11:27 AM

Im having trouble with jquery button.. I downloaded the http://jqueryui.com/download with the theme smoothness. All seems to be working except the button because after I download and open the examples using chrome, inside index.html, the button element doesn't seem to change at all, the theme is not applied and its like a notrmal button, I tried

     <link type="text/css" href="css/smoothness/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
     <script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
     <script type="text/javascript" src="js/jquery-ui-1.8.23.custom.min.js"></script>



<script>	 
 $('#login_checkbox').button();
</script>

       
<button id="login_checkbox" class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all">
   <span class="ui-button-text">Button Label</span>
</button>







ive got the style work but when the button is clicked, it does not change at all like in the website
http://jqueryui.com/demos/button/

Is This A Good Question/Topic? 0
  • +

Replies To: <button>, <input type ='submit'>, doesn't

#2 Dormilich  Icon User is online

  • 痛覚残留
  • member icon

Reputation: 3397
  • View blog
  • Posts: 9,599
  • Joined: 08-June 10

Re: <button>, <input type ='submit'>, doesn't

Posted 04 September 2012 - 11:49 AM

that’s because you call the jQuery before the HTML button is created. put those script tags after the button.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1