This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have some jQuery code whereby I am trying to set the SELECTED option in my dropdown list in a hidden field in the form. Per the code below, when I enter the value in the toAccountNumber field I run a query based on the first 2 characters entered in that field and then select the option that matches in my dropdown.
I want to populated the selected value in a hidden field before I disable the dropdown so that I can pass the hidden field value to my bean however, after the jQuery code completes I went to the view source and the hidden field value was not populated. I am assuming that I should see the value in the hidden field when the jQuery code completes, is that correct?
Any help/direction would be appreciated. Thank you.
BTW, I had used as an example a jQuery user's post on this URL to help me but I'm using blur and not click as the event to act on and it seems like it should work but it is not and I'm assuming I may have a syntax issue(?):