New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
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>
Today @ 6:25am
Tags: jquery
2 Views
no comments
 
C#
<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());
Thursday @ 11:32pm
Tags: jquery
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()
         {
March 03, 2010 @ 8:24pm
Tags: jQuery
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 />
by Liam McLennan   March 02, 2010 @ 11:52pm
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 />
by Liam McLennan   March 02, 2010 @ 9:39pm
12 Views
no comments
 
C#
// LivePreviewPlugin.cs
//
 
using System;
using System.Collections;
using System.Html;
using System.Runtime.CompilerServices;
using jQueryApi;
 
[Imported]
by Nikhil Kothari   February 25, 2010 @ 11:25am
246 Views
1 comments
 
C#
<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()
by andreabalducci   February 24, 2010 @ 2:22am
33 Views
no comments
 
$("input:checked[name^=OfferToPrint][class^='offerIsSecurePrintable'][remoteid='" + item.CouponID + "']").parents("div.offerDetails").children("div.offerName").html();
by Eric Polerecky   February 05, 2010 @ 8:45am
Tags: jquery
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(
by jwwishart   January 18, 2010 @ 4:07pm
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>
by Cengiz Han   December 26, 2009 @ 1:44am
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;
by Hal   December 15, 2009 @ 7:29pm
Tags: jquery
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>
by Elijah Manor   December 09, 2009 @ 10:48am
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);
by Rick Strahl   November 08, 2009 @ 10:05pm
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>
    
by jwwishart   November 04, 2009 @ 7:32pm
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/
         *
by jwwishart   November 03, 2009 @ 9:01pm
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() {
by Elijah Manor   October 14, 2009 @ 10:28am
Tags: jquery
157 Views
2 comments
 
C#
 
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');
        });
    });
}
by Paul   September 29, 2009 @ 3:55pm
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>        
by Rick Strahl   September 15, 2009 @ 3:31pm
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);
by Rick Strahl   September 11, 2009 @ 6:43pm
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();
by Rick Strahl   August 31, 2009 @ 5:20pm
357 Views
no comments
 
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate