my input text box source like this:
<asp:TextBox ID="TxtDepCode" runat="server" Height="18px"></asp:TextBox>
and my javascript function like this:
<script type="text/javascript" language="javascript">
function confirm_user() {
var userPass = document.getElementById('TxtDepCode');
alert(userPass)
if (userPass=''){
alert("value is blank")
}
if (confirm("Department already available, would you like to update ?") == true)
return true;
else
return false;
}
</script>
in submit button click i want to check wethar corresponding text is empty or not my submit button click event like this: