shamsuljewel Posted January 13, 2008 Share Posted January 13, 2008 Hi all please help me to do this.... I hv a <ul class="select one" onClick=function();> under the ul there have also <li> I want if click on <ul> the class name should change to <ul class="current one"> so how can i do this..I am actually not expert in javascript.. thank you. Link to comment https://forums.phpfreaks.com/topic/85775-class-select/ Share on other sites More sharing options...
xenophobia Posted January 13, 2008 Share Posted January 13, 2008 I am not sure your css class is separated 2 or what. Your "select" and "one" is different or same class? You should put this "select_one" if it is the same. Anyway, in javascript: onClick="this.className='current one'" This should change your css class. Hope it works Link to comment https://forums.phpfreaks.com/topic/85775-class-select/#findComment-437804 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.