Same jQuery code returns two different results – Submit Button Text
- by Lijo
I have two jQuery codes - http://jsfiddle.net/Lijo/CXGX7/7/ and http://jsfiddle.net/Lijo/CXGX7/8/ . The first code returns undefined whereas the second code returns text of button.
QUESTIONS
What is the reason for this difference in result?
Why is the first code not returning expected text of button?
Note: I verified that both are using same…