This project is read-only.

How to pick up the displayed value after selection made

May 11, 2012 at 10:04 PM
Edited May 11, 2012 at 10:09 PM

Hi,

I'm trying to pick up the displayed value after the user made his selection, but no luck.

Picking up the id of the selection is easy - see below, but what I would need is the text what is being displayed in the flexbox input box, because I want to set that as a default value after reloading the page.

 

This can pick up the id of the selection, but I would need the text displayed in the input box and not the id:

[...]

onSelect: function() {

 var id=$('input[name=RicSearch]').val();

 alert(id);

}

 

I have tried var id=$('input[name=RicSearch]').text(); but that didn't work.

 

Anybody any idea?

Thanks

May 16, 2012 at 10:05 PM

Figured it out. I just simply need to use this.value after the onSelect to pick up the displayed value.

May 16, 2012 at 10:45 PM

Thanks for replying with your solution, and sorry I wasn’t able to get back to you sooner!

Cheers,

Noah

From: ilagi [email removed]
Sent: Wednesday, May 16, 2012 2:06 PM
To: Noah Heldman
Subject: Re: How to pick up the displayed value after selection made [flexbox:355512]

From: ilagi

Figured it out. I just simply need to use this.value after the onSelect to pick up the displayed value.