Accesing one element of a jQuery collection


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $('#parent > .childs').click(function(){
  2. x = $('#parent > .childs').index(this);
  3. return false;
  4. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.