Total members 11895 |It is currently Sun Dec 22, 2024 4:24 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Show Spinner using JQuery
javascript code
<html>
<head>
<title>Show Spinner using JQuery</title>

<!--
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
Note you can download the JQuery package instead of using Google version. -->
<script src="jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<style type="text/css">
#Myspinner
{
font-weight:bold;
background:#13C481;

text-align:center;
width:200px;
height:20px;
padding:0px;
text-decoration: underline;
color:Red;
}
</style>
<script>
$(function() {
var spinner = $( "#Myspinner" ).spinner();

$( "#btn2" ).click(function() {
if ( spinner.spinner( "option", "disabled" ) ) {
spinner.spinner( "enable" );
} else {
spinner.spinner( "disable" );
}
});
$( "#btn1" ).click(function() {
if ( spinner.data( "ui-spinner" ) ) {
spinner.spinner( "destroy" );
} else {
spinner.spinner();
}
});
$( "#btn3" ).click(function() {
alert( spinner.spinner( "value" ) );
});
$( "#btn4" ).click(function() {
spinner.spinner( "value", 10 );
});

$( "button" ).button();
});
</script>
</head>
<body>

<p>
<label for="spinner">Change value:</label>
<input id="Myspinner" name="value" />
</p>

<p>
<button id="btn2">Toggle disable/enable</button>
<button id="btn1">Toggle widget</button>
</p>

<p>
<button id="btn3">Show value</button>
<button id="btn4">Change value to 10</button>
</p>


</body>
</html>




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Show Spinner using JQuery
 Show Progress Bar using JQuery     -  
 Show slider Bar using JQuery     -  
 Show popup dialog using JQuery     -  
 Show Tabs Panel using JQuery     -  
 Show loading image from JQuery     -  
 Show hint when focus on html element using JQuery     -  
 Re: An example show what is LAN     -  
 show the content of set     -  
 Show image using before property     -  
 how to show hashmap value in a textbox     -  



Topic Tags

JQuery UI
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com