zohab Posted March 31, 2011 Share Posted March 31, 2011 Hi, I want to get selected class in div java script. how can i get it. following is the code of div <div id="" class="ui-accordion"> <div class="groupdiv"><div> <div class="title"></div> <div class="groupdiv selected"><div> <div class="title selected"></div> <div class="groupdiv"><div> <div class="title"></div> </div> Quote Link to comment Share on other sites More sharing options...
Adam Posted March 31, 2011 Share Posted March 31, 2011 What do you mean? Quote Link to comment Share on other sites More sharing options...
zohab Posted March 31, 2011 Author Share Posted March 31, 2011 I mean,what could be the statement in javascript to get value between div <div class="title selected"></div> function check_custom_data() { alert(document.getElementById('groupdiv').value) ; alert(document.getElementById('title selected').value) ; alert(document.getElementTagName('.title selected').value) ; } 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.