Created
August 24, 2012 13:22
-
-
Save keikun17/3450483 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// a bit of context here, obj will be an input field object that is rendered by an 'in-place' edit feature | |
obj = $("#environment_233 input").first() | |
// [<input id="regression_test_environment[name]" name="regression_test_environment[name]" style type="text" value="iii">] | |
obj | |
// [<input id="regression_test_environment[name]" name="regression_test_environment[name]" style type="text" value="iii">] | |
obj.attr('name') | |
// "regression_test_environment[name]" | |
obj.attr('value') | |
// "" | |
// Why is this returning blank? | |
obj.val() | |
// "" | |
// And this too? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment