Recent Posts

 

title

Wednesday, 14 January 2015



 



<html>
<body>
You are good Person, YES?  <input type="checkbox" id="Chkbox">
<button onclick="checkboxValidate()">Submit</button>
You are good Person, YES?  <input type="checkbox" name='ChkboxNme' id="Chkbox">
<button onclick="checkboxValidate2()">Save</button>'
<script>
function checkboxValidate() {
    if(document.getElementById("Chkbox").checked)
    alert('Yes! you are good person!!!')
    else
    { alert('Still confused ? please select checkbox.') ; return false }
}
function checkboxValidate2() {
    if(document.getElementsByName("ChkboxNme")[0].checked)
    alert('Yes! you are good person!!!')
    else
    { alert('Still confused ? please select checkbox.') ; return false }
}
</script>
</body>
</html>

No comments:

Post a Comment

 

ALL Tutorials

xPage Tutorials

Search

Lotus Notes Security


Contact Us

Name

Email *

Message *