JQuery UI: Difference between revisions

Content deleted Content added
usage update; clarification; diction
Example: the first example: class is added by jQuery UI, not by the developer; the second example was pure jQuery and is not relevant here
Line 77:
* '''Position''' – Set an element's position relative to another element's position (alignment)
 
== Example ==
<source lang = "javascript">
<script type="text/javascript">
// Make #draggable draggable
Line 87:
</source>
<source lang="html4strict">
<div id="draggable" class="ui-widget-content">
<p>Drag me around</p>
</div>
Line 93:
</source>
This makes the div with the ID "draggable" draggable by the user's mouse.
 
<source lang = "javascript">
<script type="text/javascript">
// change css of an element
$(function () {
$("#demo").css('color','#069');
});
</script>
</source>
<source lang="html4strict">
<div id="demo">
Some text
</div>
</source>
 
This changes the css of the div with the ID "demo".
 
==Release history==