Skip to content

Instantly share code, notes, and snippets.

@keikun17
Created August 24, 2012 13:22
Show Gist options
  • Save keikun17/3450483 to your computer and use it in GitHub Desktop.
Save keikun17/3450483 to your computer and use it in GitHub Desktop.
// 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