Using jQuery animate you can animate the controls. In this example we will see how to animate the control width using jQuery animate and toggle.
Example:Click on menu icon to animate
jQuery code to slide/animate menu bar
This example shows you how to disable or enable all controls/elements in a div using jquery. To disable all controls you need to set the disabled attribute value to disabled using jquery attr() method. to re-enable all the controls you need to remove the disabled attribute by using jquery removeAttr() method;
NoteAnchor(hyperlink) elements don't support disabled attribute so we have to implement on click event as e.preventDefault();. To re-enable hyperlink we have to unbind the click event.Syntax
This example shows you how to set the iframe source(src) using jquery and how to change the iframe source dynamically. In this example a dropdown contains list of page urls, when you select the page url from the dropdown it will be loaded in the iframe by assigning the src using jquery.
ExamplePage Source Select AngularJS Tutorial Stats Home
This example shows you how to show the html as text in div using jquery with out rendering. By using jquery text() function we can assign the html code to div and additionally we have to replace the space with and new line(\n) with html <br/>
jQuery.merge() function is used to merge the content of two arrays. merge function will merge the content of two arrays into the first array.
Example 1Below example will merge the first array elements and second array elements into first array.Two arrays:
Example 2Below example will merge the first array elements and second array elements into new array and keeps the first and second array elements as it is.Two arrays:
To trim string value using jquery simple use $.trim()Below example will show you how to trim a string.
Below example will trim the textbox value when click on Trim button.
This example shows you how to clear all textbox values in a page using jQuery. jQuery selector $("input:text") will select all the textboxes in the current document and $("input:text").val("") will clear all the textbox value.
This example shows you how to find the fileupload control selected file size using jquery.
This example shows you how to check the file extension from file upload control selected value or from a given file name.