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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.