Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
jQuery UI 1.7: The User Interface Library for jQuery

You're reading from   jQuery UI 1.7: The User Interface Library for jQuery Build highly interactive web applications with ready-to-use widgets from the jQuery User Interface library

Arrow left icon
Product type Paperback
Published in Nov 2009
Publisher Packt
ISBN-13 9781847199720
Length 392 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (19) Chapters Close

jQuery UI 1.7
Credits
About the Author
About the Reviewers
Preface
1. Introducing jQuery UI FREE CHAPTER 2. The CSS Framework 3. Tabs 4. The Accordion Widget 5. The Dialog 6. Slider 7. Datepicker 8. Progressbar 9. Drag and Drop 10. Resizing 11. Selecting 12. Sorting 13. UI Effects Index

Progressbar methods


In addition to the common API methods that are exposed by all library components, such as destroy, disable, enable, and option, the slider API also exposes the value method which is a shortcut for using the option method to set the value of the progressbar.

For example, we can do exactly the same as we did in the last example, but with less code using the value method. Change the final <script> element in progressbar3.html so that it is as follows:

<script type="text/javascript">
  $(function() {

    $("#progress").progressbar();
          
    $("#increase").click(function() {
          
      var currentval = $("#progress").progressbar("option", "value"),
      newval = currentval + 10;
          
      (newval > 90) ? $(this).attr("disabled", "disabled") : null;

      if(currentval < 100) {
        $("#progress").progressbar("value", newval);
        ($("#value").length === 0) ? $("<span>").text(newval + "%").attr("id", "value").css({ float...
lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
jQuery UI 1.7: The User Interface Library for jQuery
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon