My action specifies, let's say, an email address:
private String email;
public String getEmail() {
return email;
}
But sometimes, the action can just not fill in the email, keeping it null. How can I evaluate this scenario in jquery?
Something like this definitely did not help:
<script type="text/javascript">
$(document).ready(function() {
if (${email}) {
//do something
} else {
//do another thing
}
</script>