Using the keyup on jQuery, is there a way to check a what textfield currently has in it’s box?
I mean if the textbox currently does not have the word ‘apples’ then do a jQuery function, then if it does have the word apples… then do not do the jQuery function that happens when ‘apples’ is not typed.
I hope that made sense. I tried using CASES and keyup but I couldn’t get it to work.
Is this possible?
You can use jQuery’s
keyupandval()function after selecting the input:HTML:
JavaScript:
Working example: http://jsfiddle.net/uKnJB/