tags:

views:

60

answers:

1

see this code

(function($) {
    $.fn.me = function(settings) {
        settings = $.extend({ Until: false }, settings);
        $(this).click(function() {
            if(settings.Until) {
                var parent = $(this).parentsUntil(settings.Until);
            } else {
                var parent = $(this).parent();
            }
            return false;
        });
    };
})(jQuery);

now i get it like that

<script type="text/javascript">
$(function() {
    $('.delete_bot').me({Until: "#level-1"});
});
</script>

and its not working

A: 

iam very stubid lol this is happend because i use jquery 1.3.2 and parentsUntil in jquery 1.4

moustafa