Set cursor to auto in jQuery
Description
The following code shows how to set cursor to auto.
Example
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){<!--from www .j av a2 s. co m-->
$("div").one('click', function () {
$(this).width(30).css({cursor:"auto", "background-color":"blue"});
});
});
</script>
<style>
div { width:50px; height:70px; float:left; margin:5px;
background:rgb(255,140,0); cursor:pointer; }
</style>
</head>
<body>
<body>
<div></div>
<div></div>
</body>
</html>
The code above generates the following result.
...
Get height for a selected element in jQuery
Get height for the whole document in jQuery
Get inner height for a div in jQuery
Get outer width including margin in jQuery
Get the background color and create a new s...
Get the element background color in jQuery
Get the height for a tag in jQuery
Get the inner width for a div element in jQ...
Get the offset of last b tag in jQuery
Get the out height of a div element in jQue...
Get the outer width of an element in jQuery
Get the scroll bar horizontal position in j...
Get the scroll top offset in jQuery
Get the top and left position in jQuery
Get the whole document height in jQuery
Get the window height in jQuery
Print offset for an event in jQuery
Remove class from the first paragraph in jQ...
Remove the class attribute from selected di...
Reposition an element with .offset() and co...
Set background color for a form element in ...
Set background color for first table row in...
Set background color in jQuery
Set background color to blue in jQuery
Set border for form element in jQuery
Set class attribute in jQuery
Set css defined in an array in jQuery
Set height for an element to a given value ...
Set height then change style in jQuery
Set more than one CSS properties with assoc...
Set style for all selected tag and then set...
Set text color for selected form input in j...
Set the horizontal position of the scroll b...
Set the width with width function in jQuery
Toggle div element color by switch class na...
Toggle single class for paragraph during th...
...
Get height for a selected element in jQuery
Get height for the whole document in jQuery
Get inner height for a div in jQuery
Get outer width including margin in jQuery
Get the background color and create a new s...
Get the element background color in jQuery
Get the height for a tag in jQuery
Get the inner width for a div element in jQ...
Get the offset of last b tag in jQuery
Get the out height of a div element in jQue...
Get the outer width of an element in jQuery
Get the scroll bar horizontal position in j...
Get the scroll top offset in jQuery
Get the top and left position in jQuery
Get the whole document height in jQuery
Get the window height in jQuery
Print offset for an event in jQuery
Remove class from the first paragraph in jQ...
Remove the class attribute from selected di...
Reposition an element with .offset() and co...
Set background color for a form element in ...
Set background color for first table row in...
Set background color in jQuery
Set background color to blue in jQuery
Set border for form element in jQuery
Set class attribute in jQuery
Set css defined in an array in jQuery
Set cursor to auto in jQuery
Set height for a div element in jQuerySet height for an element to a given value ...
Set height then change style in jQuery
Set more than one CSS properties with assoc...
Set style for all selected tag and then set...
Set text color for selected form input in j...
Set the horizontal position of the scroll b...
Set the width with width function in jQuery
Toggle div element color by switch class na...
Toggle single class for paragraph during th...
...