<html>
<head>
<style>
.myDisableClass {
pointer-events: none;
cursor: default;
text-decoration: none;
}
</style>
<script src="jquery.js"></script>
<script>
$(document).ready(function() {
$("#firstAnchor").click(function(e) {
$(this).addClass("myDisableClass");
});
});
</script>
</head>
<body>
<a id="firstAnchor" href="https://www.google.com" target="#">Click Me</a>
</body>
</html>
<head>
<style>
.myDisableClass {
pointer-events: none;
cursor: default;
text-decoration: none;
}
</style>
<script src="jquery.js"></script>
<script>
$(document).ready(function() {
$("#firstAnchor").click(function(e) {
$(this).addClass("myDisableClass");
});
});
</script>
</head>
<body>
<a id="firstAnchor" href="https://www.google.com" target="#">Click Me</a>
</body>
</html>
nice tutorial can any one explain how we can call use defined method (other than get and post).how we can call user defined method through ajax
ReplyDelete