ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
How to get selected value of a dropdown?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to get selected value of a dropdown? (Read 1875 times)
gmswsd
Pro Deluxe
Newbie
Posts: 40
How to get selected value of a dropdown?
«
on:
May 06, 2020, 10:03:08 pm »
In the toolbar how do I get the value of the options that was selected so it can be passed as a parameter to the function.
{
type: 'select'
options: [ ["First"],
["Second"],
["Third"]
],
listener function(){
reload( options? );
}
}
Logged
paramvir
Administrator
Hero Member
Posts: 6310
Re: How to get selected value of a dropdown?
«
Reply #1 on:
May 06, 2020, 10:54:06 pm »
value of a select list can be obtained as $(evt.target).val()
Code:
[Select]
listener: function (evt) {
//$(evt.target).val()
}
this example shows usage of select lists in the toolbar:
https://paramquery.com/pro/demos/import-xlsx
Logged
gmswsd
Pro Deluxe
Newbie
Posts: 40
Re: How to get selected value of a dropdown?
«
Reply #2 on:
May 07, 2020, 05:29:40 am »
Thanks paramvir
That worked perfectly.
That and making it a single array.
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
How to get selected value of a dropdown?