Wednesday, 28 September 2016

onchange showing result


 <form name="fm"></form>
 <select onchange="companyChange()">
javascript

<script>
function companyChange(){
    alert("Can you Submit...?");
    document.fm.submit();
}
</script>

Jquery

<script>
$("#approvalStatus").change(function(){
alert("Can you Submit...?");
$("form[name='fm']").submit();
});
</script>

No comments:

Post a Comment