Hi,
I'm currently reading jQuery - Novice to Ninja (fantastic book), and trying to understand how I can add several words to the code snippet below. I currently remove, let's say Sweden as below, but what if I also want to remove Norway?
And another question, what if I would like to keep only Sweden and remove the rest from a list of twenty countries? How would I do that?
Code JavaScript:jQuery(document).ready(function() { jQuery('#countries tbody').remove(':contains("Sweden")'); });


Reply With Quote


Bookmarks