<script type="text/javascript"> function validate_textarea() { var textarea = tinyMCE.get('textar_Question1').getContent(); if ( (textarea=="") || (textarea==null) ) { $('#divValidaTetextarea').modal({show:true}) //alert("Post body must not be left blank"); //textarea.focus(); return false; } else { alert("ok"); } } </script>
function isOneChecked() { var chx = document.getElementsByTagName('input'); for (var i=0; i<chx.length; i++) { if (chx[i].type == 'radio' && chx[i].checked) { return true; } } alert("Please select option"); // End of the loop, return false return false; }
<a type="button" id="btnAddQuestion" class="btn" >AddQuestion</a>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)