JQuery Code Generator
Text generator - JQuery code generation examples
Example input
-
$(document).ready(function(){ $("p").click
Example real generated results
-
star
(function(){ $(this).next("ul").slideToggle(); $(this).toggleClass("active"); }); $("ul").hide(); $("ul").first().slideDown(); $("ul").first().toggleClass("active"); $("ul").show(); }); $("ul").hide(); $("ul").last().slide
-
star
(function(){ var t = $(this); var tname = t.attr('id'); var tvalue = t.text(); var ttext = t.text(); var tclass = t.attr('class'); var tstyle = t.attr('style'); var tdata = t.data('target'); var tdata2 = t.data('target2');
-
star
(function(){ $("body").append("<div id='mousepad'>" + $(this).text() + "</div>"); }); $("#mousepad").click(function(){ $("#mousepad").remove(); }); }); $("p").click(function(){ $("body").append("<div id='mousepad'>" + $(this).
-
star
(function(){ var $div = $(this).parent(); var $divName = $div.attr("rel"); var $divParent = $div.parent(); var $divText = $div.text(); var $divTitle = $div.attr("title"); var $divLink = $div.find("a").attr("href"); $divParent.removeChild($div
try it yourself: Text Generator Playground - JQuery Code Generator
Sign up