Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Get a selected value from a select list item in a tabular form.

bookertOct 31 2012 — edited Nov 1 2012
Hi, 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.
This post has been answered by Joni Vandenberghe on Oct 31 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 29 2012
Added on Oct 31 2012
3 comments
886 views