Hi,
Have a few select and looking to read the text value (not the ID) selected in order to construct identificator.
I'm not very clear with JS but I tried..
Can read ID with "document.getElementById" but all code after like "select.options[ index ].value" give issue.
Any idea ?
read text value of select
Re: read text value of select
If this is a lookup field in one of your AppGini detail view forms, try:
(Replace fieldname with the actual field name)
Code: Select all
$j('#s2id_fieldname-container').text().trim()
AppGini plugins to add more power to your apps:
- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
Re: read text value of select
Excellent Ahmad, it's a lookup field and works fine !
Many thx !
Many thx !