Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE HTML>
<html lang="ar">
<head>
<meta charset=utf8>
<script type="text/javascript">
    function vacFunction(btnAction)
    {
        if(btnAction.id == 'Submit'){
            //if clicked on 'Submit for Review' button
            btnAction.disabled = true;
            console.log("Submit for Review");
        }
        if(btnAction.id == 'Save'){
            //if clicked on 'Save As Draft' button
            btnAction.disabled = true;
            console.log("Save As Draft");
        }
        return false;
    }
</script>
</head>
<body>
<form name="vacNotificationEdit" method="post" >
    <input type="button" class="button_medium" name="Save As Draft"  id="Save"   value="Save As Draft" onClick="return vacFunction(this);" ><![CDATA[&nbsp; ]]></input> 
    <input type="submit" class="button_big"  name="Submit for Review" id="Submit" value="Submit for Review" onClick="return vacFunction(this);"></input>
</form>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
chandrakeshkumarpro
0viewers