hi,
i need to empty all the divs whic has an id like 'bkoption'
eg : my html code is like this
<div class="subsubsubmenu" id="bkoption1">some content</div>
<div class="subsubsubmenu" id="bkoption2">some content</div>
<div class="subsubsubmenu" id="bkoption3">some content</div>
so when i trigger an on click function i need to empty all of these divs.
i wrote something like this to test before coding the rest, which didn't work , or even didn't show an error on firebug.
$('div[id*="bkoption"]').each(function(index) {
alert(index + ': ' + $(this).text());
});
what am i doing wrong?
much appreciate reply.