![]() |
jquery add class failed when the page loaded - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: jquery add class failed when the page loaded (/showthread.php?tid=47464) |
jquery add class failed when the page loaded - El Forum - 12-09-2011 [eluser]Unknown[/eluser] hello CI's masters, i wonder why when i'm adding a class to a li tag using jquery, the class only appears just a while and then gone. here's my code. the JS Code: $(document).ready(function() { the HTML Code: <ul class="tab"> Code: echo anchor tag any typo maybe? |