Format:
Recent snippets matching tags of jQuery
jQuery("#list").tableDnD({
onDrop: function(table, row) {
var oldIndex = row.id;
var newIndex = row.rowIndex;
if (oldIndex == newIndex)
14 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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <link rel="stylesheet" type="text/css" media="screen" href="/css/redmond/jquery-ui-1.7.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="/css/ui.jqgrid.css" /> <script src="/js/jquery-1.3.2.min.js" type="text/javascript"></script> <script src="/js/grid.locale-en.js" type="text/javascript"></script> <script src="/js/jquery.jqGrid.min.js" type="text/javascript"></script>
16 Views
no comments
$(document).ready(function() { // Initialise the first table (as before) $("#table-1").tableDnD(); // Make a nice striped effect on the table $("#table-2 tr:even').addClass('alt')"); // Initialise the second table specifying a dragClass and an onDrop function that will display an alert $("#table-2").tableDnD({
13 Views
no comments
<!-- Grab Google CDN's jQuery. fall back to local if necessary --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript">!window.jQuery && document.write('<script src="/content/jquery-ui/1.8.4/js/jquery-1.4.2.min.js"><\/script>')</script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js" type="text/javascript"></script> <script type="text/javascript">!$.ui && document.write('<script src="/content/jquery-ui/1.8.4/js/jquery-ui-1.8.4.custom.min.js"><\/script>')</script>
29 Views
no comments
function(a){if(a=$(typeof a=="string"?"#"+a:a).get(0)){a=a.contentWindow||a.a;if(a.document)a=a.document;return a}};
24 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"> .primary { background-color: green; } .secondary { background-color: blue; }
79 Views
no comments
/* Refresh page content every 10 seconds. */ setInterval(function() { $("#refresh").load(location.href+" #refresh>*",""); }, 10000); // seconds to wait, miliseconds /*
40 Views
no comments
slickGrid.AddColumn(
Column.ForId("riga")
.Named("Riga")
.ForField("id")
.WithEditorFunction("TextCellEditor")
.WithSetValueHandler("updateItem")
.WithBehavior(Column.Behavior.selectAndMove)
).AddColumn(
Column.ForId("codice")
.Named("Codice")
177 Views
no comments
/* Script to add jQuery into current page via Firebug/Console */ (function() { var b = "jQuery script is now available."; try { var a = document.createElement("script"); a.setAttribute("type", "text/javascript"); a.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"); document.getElementsByTagName("head")[0].appendChild(a); window['$j']=jQuery; setTimeout(function(){
50 Views
no comments
//Accordion $('.accordion> .accordionContent').hide(); $('.accordion> .accordionHeader').click(function() { var $nextDiv = $(this).next(); var $header = $(this); var $visibleSiblings = $nextDiv.siblings('div:visible'); if ($visibleSiblings.length) { $visibleSiblings.prev().toggleClass("open");
43 Views
no comments
//Document Ready $(document).ready(function() { }); //Add ie6 class if ($.browser.msie && $.browser.version == "6.0") $('body').addClass("ie6"); //Jquery loaded check
47 Views
no comments
//Collapsible Panel $('.titleRow').click(function(){ var $el = $(this); $el.next().slideToggle('fast'); $el.toggleClass('open'); }); //Collapsible Panel width class only $('.itemRow').click(function() { var $el = $(this); $el.next().toggleClass('hide');
57 Views
no comments
//Disable Textbox $('#<%=CommentCheckBox.ClientID%>').click(function() { if ($("#<%=CommentCheckBox.ClientID%>").attr('checked')) $("#<%=CommentTextBox.ClientID%>") .val("U heeft er voor gekozen geen opmerkingen te plaatsen") .toggleClass('disabled') .attr("disabled", "disabled").blur(); else $("#<%=CommentTextBox.ClientID%>") .val("")
51 Views
no comments
// controller public ActionResult Index([DefaultValue(1)] int page) { if (Request.IsAjaxRequest()) return PartialView("PagedDataControl", model.Data); return View(model); } // .aspx
102 Views
no comments
// Controller Action public JsonResult SearchItem(string nature, string term) { IEnumerable<Item> list = null; Transactional(() => { switch (nature.ToLowerInvariant()) { case "ricambi":
105 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" xml:lang="en"> <head id="ctl00_Head1" profile="http://www.w3.org/2005/11/profile"> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.6.0/build/reset/reset-min.css" /> <link rel="shortcut icon" href="/favicon.ico" /> <link href="/css/style.css" rel="stylesheet" media="screen,projection" type="text/css" /> <title></title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta name="description" content="" />
70 Views
no comments
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Lucilla.Framework.Web.Mvc; using DemoApp.Services.Model; namespace DemoApp.WebSite.Controllers {
187 Views
no comments
//*************************************** // Description: Display images in a simple teletype style. // Usage: $(".teletype").teletype({speed: 100}); // Put all images in wrapper <div> // e.g : <div class="teletype"><img src="/images/1.jpg" alt="" width="10" height="10"/> ... </div> // Ensure the images are hidden // e.g : .teletype img { display: none } // Params example: ({speed:100},{type:"fast"}); // Written by: Arran Maclean , A R Media Ltd. 22/03/2010 //***************************************
86 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() {
90 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 />
288 Views
no comments
// LivePreviewPlugin.cs // using System; using System.Collections; using System.Html; using System.Runtime.CompilerServices; using jQueryApi; [Imported]
531 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()
95 Views
no comments
$("input:checked[name^=OfferToPrint][class^='offerIsSecurePrintable'][remoteid='" + item.CouponID + "']").parents("div.offerDetails").children("div.offerName").html();
103 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(
82 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
