jquery - Check other input fields other than the one being typed in and if exists remove value -
i'm trying check make sure value user inputs not appear in text field if if remove remove text user typed. i'm looping through fields this:
$( ".sort_member_order_text" ).keyup(function() { var dinput = this.value; $(".sort_member_order_text").each(function() { var finput = this.value; if(finput == dinput){ finput.html(''); return false; } }); }); i tried above code i'm getting undefined. ideas on how make work?
Comments
Post a Comment