Hi,
Following is my code, i want to hide a li tag depending on its content.
dom.find('ul#overlay_opt li').click(function(){
if($(this).attr('class') != 'deactive'){
var content = $(this).text();
if(content == 'none') dom.find('#secondary_para').hide();
else dom.find('#secondary_para').html($(this).text()).show();
}
});
My html is
<ul id="overlay_opt">
<li class="deactive">none</li>
<li>Requests</li>
<li>Impressions</li>
<li>Clicks</li>
<li>Earnings</li>
</ul>
Problem is, in ie variable and string comparison is happening.
i.e "if(content == 'none')" every time it executes as false.