I want to hide a specific input on a page unless a user types a Hotmail address into a different input. Whenever the user types in a hotmail address, I want to show the input. If the address is removed, I'd like it to disappear. How can this be accomplished with jQuery?
I know I'm going about this incorrectly, but here's what I have so far:
$(function() {
if($("select#combobox").val() *= '@hotmail') {
$('#hotm').show();
}
else {
$('#hotm').hide();
}
});
*=is for multiplication, it has nothing to do with equality or pattern matching.