• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with checkbox inside anchor tag

 
prathima krishna
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have 3 tabs and inside each tab there a checkbox and Onclick of the tab or the chekbox i need to display the corresponding contents..

As of now i am able to display the contents on click of the tab but the onclick is not working in case of checkbox.

this is the code for a checkbox inside a tab

<li><a href="#" rel="dog2">Tab 2<span><input type="checkbox" onclick="javascript:checkTab(this.form);" id="chk2"></span></a></li>


Can some one please help me out with this issue
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is the checkbox inside an anchor? And remove the unnecessary "javascript:" prefix.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic