Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Anchor Tag enable using Jquery
Mahesh Patil
May 20 2015 11:15 AM
2k
Reply
Hello all,
My code for disable anchor tag is like
function disablediv() {
$('#div1 :button').attr('disabled', true);
$("a").click(function (event) {
event.preventDefault();
});
}
<div id="div1">
<input type="button" id="btn1" value="alert" onclick="alertdiv()" />
<ul>
<li><a href ="#" id ="a1">gmail</a></li>
</ul>
</div>
<input type="button" id="show" value="Disable" onclick="disablediv()" />
using this code i have disabled the all anchor tag but after that i cant enable the anchor tag.
Plaese any one tell me how to enable all anchor tag after event.preventDefault();
Thanks
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Already Radio button is selected Issue.
In this Google map to disable the mapTypeControl