Actually when you use click
it cant happen that way use mousedown
instead
Working snippet attached
$(function(){
$('#wrapper').on('mousedown', 'input[type=radio]',function(e){
if(!$(e.target).is(':checked')){
return true;
}
e.preventDefault();
$(this).prop("checked", false);
alert('Hello World!');
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="wrapper">
<input type=radio name=hello />
<input type=radio name=hello />
<input type=radio name=hello checked/>
</div>
I have a .ascx page where I have to display a map. <img width="550" height="296" usemap="#Map" alt="" src="~/map_international.jpg"> <map name="Map"> <area shape="poly" coords="230,...
I have a .ascx page where I have to display a map. <img width="550" height="296" usemap="#Map" alt="" src="~/map_international.jpg"> <map name="Map"> <area shape="poly" coords="230,...
I am trying to replace the document.write() function in Javascript. Not completely sure how to do, as I don't know which element to write the HTML to. Currently, the code javascript code is inserted ...
I am trying to replace the document.write() function in Javascript. Not completely sure how to do, as I don't know which element to write the HTML to. Currently, the code javascript code is inserted ...
I am trying like this: (/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$/) but it is not working.
I am trying like this: (/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$/) but it is not working.
I have this table <table class="table"> <tr> <td ng-repeat="(k, obj) in items | orderBy:'key'">{{obj.key}}</td> </tr> </table> That shows a table of ...
I have this table <table class="table"> <tr> <td ng-repeat="(k, obj) in items | orderBy:'key'">{{obj.key}}</td> </tr> </table> That shows a table of ...