Tag Archives: jQuery

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 »

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 »

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 »

Radio button is check or not

Here I will show how to Check whether radio button is check or not with example. Radio button is check or not    <script type=”text/javascript”> function call() { var jq = jQuery.noConflict(); var rd = jq(“#s1”).is(‘:checked’); //.val(); alert(rd); } </script>

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 »

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 »