Get a selected value from a select list item in a tabular form.
bookertOct 31 2012 — edited Nov 1 2012Hi, I have a tabular form and I am trying to get the selected value from a select list item and store the selected value into a hidden page item elsewhere on the tabular form, so I can use that value.
I already have something similar for input items on the tabular form.
// Get the initial values
var row = $x_UpTill(this.triggeringElement, 'TR');
var numberOfItems = $('input[name="f12"]', row)[0];
numberOfItems = 123456.123
What I want to do is soemthing similar as above but capture the value from a select item in the tabular form. I thought I could do something like:
// Get the selected value
var row = $x_UpTill(this.triggeringElement, 'TR');
var numberOfItems = $('selected[name="f08"].val()', row)[0];
But this method leaves the var numberOfItems as undefined.
Please help me find a way to identify the 'Select Item' in the tabular form called "f08" and get that value.
I am a newbie to jQuery Selectors etc..
Thanks.