How to Get value from zen component
I am new to zen pages, and trying to see how to get the value of a control.
Below is what I have
<option value="1" text="1" />
<option value="2" text="2" />
</combobox>
ClientMethod Fetch() [ Language = javascript ]
{
// how can I get the value of the controls here? can I do something like document.getElementById()?
}
Product version: Ensemble 2017.1
You can get the value by : zenPage.getComponentById('dtfrom').value;
Note - it's generally better practice to use
or equivalently (and shorter),super. thank you for the best practice guidance