Format:
Recent snippets matching tags of jQuery
<div class="controls"> <span><input type="checkbox" class="checkAll" /> <b>Check All</b> <span> or <span><a href="javascript:void(0);" class="invertSelection">Invert Selection</a></span> </div> <div class="elements"> <span><input type="checkbox" class="cb-element" /> Checkbox 1</span> <span><input type="checkbox" class="cb-element" /> Checkbox 2</span> <span><input type="checkbox" class="cb-element" /> Checkbox 3</span>
2 Views
no comments
<script type="text/javascript"> //<![CDATA[ $(document).ready(function() { $("#Address").blur(function(evt) { //If it's time to look for an address, // clear out the Lat and Lon $("#Latitude").val("0"); $("#Longitude").val("0"); var address = jQuery.trim($("#Address").val());
8 Views
no comments
<html> <head> <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text/javascript"></script> <script> $(document).ready(function() { $('a[href^=http://]').each(function() {
31 Views
no comments
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Testing Client-Side Templates</title> </head> <body> <form id="people_input"> <label for="name">Name: </label><input type="text" name="name" /><br /> <label for="age">Age: </label><input type="text" name="age" /><br />
41 Views
no comments
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Testing Client-Side Templates</title> </head> <body> <form id="people_input"> <label for="name">Name: </label><input type="text" name="name" /><br /> <label for="age">Age: </label><input type="text" name="age" /><br />
12 Views
no comments
// LivePreviewPlugin.cs // using System; using System.Collections; using System.Html; using System.Runtime.CompilerServices; using jQueryApi; [Imported]
246 Views
1 comments
<div id="toolbar-pane"> <% Toolbar .Create() .SetCorners(Corners.CornersType.top) .AddSet() .AddIconButton("btnOpen", "Open", "folder-open") .AddIconButton("btnSave", "Save", "disk") .AddIconButton("btnDelete", "Delete", "trash") .EndSet()
33 Views
no comments
$("input:checked[name^=OfferToPrint][class^='offerIsSecurePrintable'][remoteid='" + item.CouponID + "']").parents("div.offerDetails").children("div.offerName").html();
42 Views
no comments
jQuery.fn.formtip = function() { return this.each(function(i, el) { var item = jQuery(el); var title = item.attr("title"); if (title == undefined) { return true; } else { item.hover(
18 Views
no comments
<html> <head> <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text/javascript"></script> </head> <body> <div id="related-results" class="auto-closable-div"> <h2>Blah blah blog</h2> </h2> </div>
275 Views
no comments
function wireHideShow() {
$("a.hideshow").each(function() {
var selector = $(this).attr("hideshowselector");
$(selector).hide();
});
$("a.hideshow").click(function() {
var selector = $(this).attr("hideshowselector");
$(selector).toggle();
return false;
72 Views
no comments
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="jQueryBlockUi._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="http://malsup.com/jquery/block/jquery.blockUI.js?v2.28"></script> </head> <body>
204 Views
no comments
var sel =
$("#gdEntries>tbody>tr")
.not(":first-child") // no header
.not(":last-child") // no footer
.filter(":even")
.addClass("gridalternate");
// *** Demonstrate simple plugin
sel.fadeTo(2000,0.30);
52 Views
no comments
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Html Template</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style type="text/css"> </style>
106 Views
2 comments
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Simle Html Template</title> <script type="text/javascript"> /* * jQuery JavaScript Library v1.3.2 * http://jquery.com/ *
192 Views
no comments
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Home Page</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> </head> <body> <script type="text/javascript"> $(function() {
157 Views
2 comments
function setWards(o) {
$.getJSON('/Home/GetWards/?cbd_id=' + o.value, null, function(data) {
$('#ward').empty();
$.each(data, function(i, item) {
$('<option/>').attr('value', item.ID).html(item.Name).appendTo('#ward');
});
});
}
41 Views
no comments
if (JSON && !JSON.parseWithDate) { var reISO = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/; var reMsAjax = /^\/Date\((d|-|.*)\)[\/|\\]$/; JSON.parseWithDate = function(json) { /// <summary> /// parses a JSON string and turns ISO or MSAJAX date strings /// into native JS date objects /// </summary> /// <param name="json" type="var">json with dates to parse</param>
162 Views
no comments
error: function(xhr, status) { var err = null; if (xhr.readyState == 4) { var res = xhr.responseText; if (res && res.substr(0,1) == '{') var err = JSON.parseWithDate(res); if (!err) { if (xhr.status && xhr.status != 200) err = new CallbackException(xhr.status + " " + xhr.statusText);
142 Views
no comments
/// <script type="text/html" id="script"> /// <div> /// <#= content #> /// <# for(var i=0; i < names.length; i++) { #> /// Name: <#= names[i] #> <br/> /// <# } #> /// </div> /// </script> /// /// var tmpl = $("#itemtemplate").html();
357 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
