In this post, I would like to show you data populating in select 2 dropdown based on x event and it will get data from the remote server using Http protocol, the same technique you can apply for dependent dropdowns to […]
Better way of using jquery’s Append
We use append() method for adding elements dynamically into an already existing element. If you miss use this function, it will dramatically affects the performance of your page. In this post, I will share a quick performance […]
Get selected Text and Value of DropDownList using jQuery
This tutorial illustrates about getting selected Text and Value of HTML Select DropDownList on Button click using jQuery. The following HTML Markup consists of an HTML Select DropDownList and a Button.
1 2 3 4 5 6 7 8 9 10 |
// dropdown markup <select id="myselect"> <option value="1">Mr</option> <option value="2">Mrs</option> <option value="3">Ms</option> <option value="4">Dr</option> <option value="5">Prof</option> </select> // button <input type="button" id = "getDataButton" value="Get Selected Text and Value" /> |
Scroll to top JQuery
When you have web page too long, it is recommended to provide your users easy navigation mechanism.You we can provide it in many ways like fixed navigation at top and left or right navigation panels..etc. Here I am gonna […]
Abort A Previous Ajax Request In jQuery
When using Ajax there will be changes ,where you will need to cancel the Ajax call. I found Aborting is useful while building a search as you type feature and I would abort the previous search and request a new Ajax search […]
JQuery Foreach Example
Foreach provides easy way to iterate over the arrays, objects. Foreach is the most important control structure in any language. So i am going to write a simple comprehensive tutorial on JQuery’s $.each() function.I […]
How to check / uncheck all check boxes using jQuery?
You may have noticed select/deselect all functionality on websites like gmail.com, outlook.com or even in the wordpress admin dashboard basically which allows you to select all emails or posts on the page with single click. […]
jQuery Copy To Clipboard
ZeroClipboard is a library that provides you with a way of coping text to your clipboard using Adobe flash and a Javascript interface. Flash can access your computers clipboard because you have to install flash and agree […]
JQuery Ajax form submit Example
Sending Ajax requests to server with JQuery library is pretty easy. We just need to include JQuery in your page after that we can use JQuery’s ajax API methods in the page. Deprecation Notice: The jqXHR.success(), […]
Check if Object is empty in Javascript
To check if an object is empty in JQuery we use jQuery.isEmptyObject( object ) with will return true on success , false on failure. Ex :
1 2 |
jQuery.isEmptyObject({}); // true jQuery.isEmptyObject({ foo: "bar" }); // false |