This project is read-only.

how do I set both visible and hidden values?

Feb 8, 2011 at 10:13 PM
Edited Feb 8, 2011 at 10:18 PM

How do I set both initial visible and hidden values to the drop down box?

setValue() sets both hidden and visual values to the same value. I want to do something like:

setValue({id:86, name:'Emerald Dream'}); // using hiddenValue and displayValue to get properties for hidden and visible values.

and have realmId_hidden set to 86, and realmId_input set to 'Emerald Dream'

For now I use

initialValue : 86


$('#realmId_input').val('Emerald Dream');