Are you first timer at Why not join us and start exchange your knowledge with everyone. Register today!

jQuery Syntax

0 votes
added Apr 5 in jQuery by LC Marshal Second Warrant Officer (6,010 points)

Example 1.

$(function() {
  var expiry = $('span.expiry_msg');  
  if ($(expiry).length) { 
   $(expiry).clone().appendTo('#footer > span.expiry-msg').addClass('footer-expiry').fadeIn(500);
$(function() { ... });

is just jQuery short-hand for

$(document).ready(function() { ... });

Please log in or register to example this solution. - Malaysia based Knowledge Exchange Platform, where you can share your finding or solution with other members of community.