skip to Main Content

jQuery find a li element within ul

I've a function, which should remove a li element from a list identified by the id. I use jQuery and this call $("#selector").find("li[id='" + id.substring(4) + "']").remove(); The call started with a click on a button. In Firefox it works…

VIEW QUESTION

Can anybody explain to me why this jquery function does not work?

I made a simple code example to narrow down my issue. If I have this code jQuery.noConflict(); jQuery(document).ready(function($) { var dosomething=function(the_selector){ $('.content', the_selector).each(function() { $(this).css('background-color','red'); }); } dosomething('.flickr_badge_image'); }); it does not work but if i change it to jQuery.noConflict();…

VIEW QUESTION
Back To Top
Search