Posted By


garciaon on 05/17/11

Tagged


Statistics


Viewed 341 times
Favorited by 0 user(s)

Criar novo seletor


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



Copy this code and paste it in your HTML
  1. $.extend($.expr[':'], {
  2. over100pixels: function(a) {
  3. return $(a).height() > 100;
  4. }
  5. });
  6.  
  7. $('.box:over100pixels').click(function() {
  8. alert('The element you clicked is over 100 pixels high');
  9. });

URL: http://viralpatel.net/blogs/2009/08/20-top-jquery-tips-tricks-for-jquery-programmers.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.