My if statement needs work
How do I make an alert / prompt message if the record is not found?
$("#recordInput").on("keypress", function(enter2){
var record = $('input[name="record"]').val();
if (enter2.keyCode == 13){
$("#drinks li:contains('" + record + "')").appendTo("#hugs");
$('form').trigger("reset");
}
});
No comments:
Post a Comment