<script type="text/javascript"> $(document).ready(function() { if($("#image").is(":checked")) { alert('yeas'); } }); </script>
<div class="form-group"> <input type="radio" name="type" value="image" id="image" /> <label for="image">image</label> <input type="radio" name="type" value="code" id="code"/> <label for="code">code</label><br /> </div>
<script type="text/javascript"> $(document).ready(function() { $("#image").change( function(){ if ($(this).is(':checked')) { // do what you want here } }); }); </script>
$(document).ready(function(){ $("input").on( "click", function() { if($("#image").is(":checked")) { alert('yeas'); } }); }); </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)