Features of jQuery 1.4 Released

jQuery 1.4 was recently released. This wasn’t simply a maintenance release as some had speculated; there are many new features, enhancements and performance improvements included in 1.4! This post covers the new features and enhancements that you may find beneficial. You can download jQuery 1.4 right now, here: http://code.jquery.com/jquery-1.4.js 1. Passing Attributes to jQuery(…) Pre […]

Read More

Differentiate between jQuery and AngularJS

jQuery is a lightweight and feature-rich JavaScript Library that helps web developers by simplifying the usage of client-side scripting for web applications using JavaScript. It extensively simplifies using JavaScript on a website and it’s lightweight as well as fast. So, using jQuery, we can: easily manipulate the contents of a webpage apply styles to make […]

Read More

Add table row in jQuery

Here I will explain how to add table row in jQuery. We can use .append() method to add another row in table as you can see in the below example. <html> <head runat=”server”> <title></title> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script> <script> $(document).ready(function () { $(“tr :last”).append(‘<tr><td>add by jQuery</td></tr>’) }); </script> </head> <body> <form id=”form1″ runat=”server”> <div> <table> <tr> <td> […]

Read More

Filters in jQuery

It allow you to select a specific element based on its position in a group of elements or returns elements that match with the certain criteria. Syntax: $(selector).filter(criteria,function(index)) we will explain some types of filter like first(), last() and eq(), filter() and not() . Exxample:- <!DOCTYPE html> <html> <head> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script> <script> $(document).ready(function(){ $(“p”).filter(“.elem”).css(“background-color”, “yellow”); […]

Read More

jQuery scroll to element

Here I will explain how to show upward scrolling option(Go to top) to element with the help of jQuery. As you see in most of the websites when we scroll down or going to downward(footer) of the website then it shows an option of “Go to Top” or image for upward scrolling. Now I will […]

Read More

Disable Cut Copy Paste operation using jQuery

Somtimes we need to disable Cut, Copy, Paste content from textbox in our site due to some reasons(like don’t allow to copy password from password TextBox to Confirm password TextBox). We can implement this functionality with the help of below example. First create two textboxes control  password and  confirm password. <table> <tr><td>Password: </td><td><asp:TextBox ID=”txtPassword” runat=”server”></asp:TextBox></td></tr> […]

Read More

Gridview using jQuery in Asp.Net

1st add the reference of JQuery library in your asp.net web page inside <Head> tag like this <script src=”Script/jquery-1.4.min.js” type=”text/javascript”></script> BIND GRIDVIEW TO DATASOURCE Now lets Drag and drop GridView in your asp.net web form and it will be like this <asp:GridView ID=”GridView1″ runat=”server”></asp:GridView> But its up to you you can set the autogeneratecolumn property […]

Read More

Autocomplete with XML

Here I will explain how to use Autocomplete with xml data. Basically Autocomplete provides a list of suggestions while you type into the field. It prevents the user from having to enter an entire word or a set of words. In below example i will show how to bind xml data in autocomplete textbox. CS […]

Read More

Which is the fastest, document.getElementByID(‘txtName’) or $(‘#txtName’).?

Native JavaScipt is always fast. The jQuery method to select txtName “$(‘#txtName’)” will internally make a call to document.getElementByID(‘txtName’). Since jQuery is written on top of JavaScript and it internally uses JavaScript only, JavaScript is always fast.

Read More

What is jQuery

jQuery is a lightweight and concise JavaScript Library created by John Resig in 2006 with a nice motto – Write less, do more. It is greatly simplifies JavaScript programming. Features: HTML/DOM manipulation: The jQuery made it easy to select, traverse and modifying DOM elements. CSS manipulation: The jQuery made it easy to modify style or css of […]

Read More

What is difference between jQuery.get() and jQuery.ajax() method?

$.ajax() is the most configurable one, where you get fine grained control over HTTP headers and such. You’re also able to get direct access to the XHR-object using this method. Slightly more fine-grained error-handling is also provided. Can therefore be more complicated and often unecessary, but sometimes very useful. You have to deal with the […]

Read More

Explain Selectors in jQuery?

jQuery Selectors are used to select one or a group of HTML elements from your web page. jQuery support all the CSS selectors as well as many additional custom selectors. jQuery selectors always start with dollar sign and parentheses: $() There are three building blocks to select the elements in a web document.

Read More