I have a jquery which needs to fire when on click event. When I try it on site like w3schoools try jquery, it fires. But in my application, it fails to fire. Below is my script.
<script>
$(document).ready(function(){
$(".vouch").click(function(){
alert("000");
});
});
</script>
</head>
<body>
<li class="vouch">
<a href=""><span>tooo</span></a>
</li>
When i change the class .vouch to a different class, it fires. seems like there is something blocking the working of the code. Any assistance is greatly appreciated.
lishould be nested withinulorol.