Hi JQuery ninjas.
Hope you can help.
I'm looping through two selectors:
$('.div').each(function() {
$('.selector1, .selector2 option:selected').text();
}
Both selectors returns plain-text and I need the output in the order of the page.
My problem is that whenever it is .selector2 (value from a dropdown) I need to add a < span > tag around it. How can I do that and at the same time keep the order?