Under what circumstances do the following two methods of binding a click event to a paragraph not behave the same:
$("p").live("click", function() { alert("p clicked") })
$("p").click(function(){ alert("p clicked") });
Under what circumstances do the following two methods of binding a click event to a paragraph not behave the same:
$("p").live("click", function() { alert("p clicked") })
$("p").click(function(){ alert("p clicked") });
How would you write a selector that selects the following
Write a jQuery plugin to display a list of images in a Lightbox.
Replace the string The quick brown fox jumps over the lazy dog with the string The1 quick2 brown3 fox4 jumps5 over6 the7 lazy8 dog9.
Write a function that takes an array of integers and returns that array rotated by N positions.
For example, if N=2, given the input array [1, 2, 3, 4, 5, 6] the function should return [5, 6, 1, 2, 3, 4]