jQuery(function($){ var foundin = $('#i-interested option:contains("optgroup-")'); $.each(foundin, function(value){ var updated = $(this).val().replace('optgroup-',''); $(this).nextUntil('option:contains("endoptgroup")').wrapAll(''); }); jQuery('#i-interested option:contains("optgroup-")').remove(); jQuery('#i-interested option:contains("endoptgroup")').remove(); });

About Administrator

This author has not yet filled in any details.
So far Administrator has created 0 blog entries.