Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $.extend($.expr[':'], {
- moreThen1000px: function(a) {
- return $(a).width() > 1000;
- }
- });
- $('.box:moreThen1000px').click(function() {
- // creating a simple js alert box
- alert('The element that you have clicked is over 1000 pixels wide');
- });
- });
Add Comment
Please, Sign In to add comment