• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to disable header tag in jquery or javascript

 
pravin rasal
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to disable header tag(<h1>to<h6>) in j query or java script. I want disable these tag on click so can I disable in j query or java script

for example I have <h2>sdfsdf</h2> and i want to disable h2 on click so is their any method to disable <h2> tag
 
Kavisha Paranamana
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you mean by 'disabling' ?
If you need to change the 'look' of these tags on the click event, you can just change the class in the click event.

 
pravin rasal
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This is code in J query : My problem is when i click on "section 1" i didn't want to pop up above description of section one and also when I click on area of "section 1 " means <h3> tag I Didn't want to popup the message...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic