We can use jQuery .prop() method to change the set or get the properties of an element. When I say set, it means change one or property (or value) of an element. The term get indicates return a ...
There are few easy ways to get the selected text of a SELECT dropdown list dynamically using JavaScript and jQuery. The selected text of a SELECT element may be different (or similar) from the value ...
I shared an article on Hightcharts few days back where I have explained how to create Column charts dynamically using JSON data extracted from a remote file. You can use any data source for the chart ...
You can use the location.reload() method to reload or refresh an entire web page or just the content inside an element. The .reload() method can be triggered either explicitly (with a button click) or ...
We often use the # (hash) within the href attribute of HTML anchor tag to link to a particular section in a web page. For example, to scroll to the top of the current page you can use href=“#top” and ...
In jQuery, you can use the .clone() method to clone a textbox or an input field on your web page. You can clone the textbox with or without the values. Since, these cloned fields are dynamically ...
You can use the width() method in jQuery for horizontal measurement of an element such as a DIV. The width() method excludes padding, margin or border of the element. Whereas, the outerWidth() method ...
In todays post, I am sharing a quick tip showing how to get span element inside an li tag using jQuery and JavaScript. Let’s assume, I have an unordered list on my web page and inside each li tag ...
If you are using the jQueryUI AutoComplete widget in your application, then I am you sure might have come across the need to highlight the letters or the words that you type in the textbox. Its simple ...
You can use the “onfocus” attribute in JavaScript to clear a textbox or an input box when somebody sets focus on the field. If you are using jQuery, then use the “.focus()” method to clear the field. ...