Incorporating client-side functionality into my user controls is a priority for me right now.
For example, imagine one of the controls includes a hidden field and several checkboxes. Whenever a checkbox is checked, it updates the hidden field to 'YES'. How can I access that control within the parent control or page, and then execute a function to retrieve the value of the hidden field?
If there are multiple instances of these controls on the page, I would like to implement something like this:
var choices1 = $get('choices1_id');
if(choices1.dirty() === 'YES') {
// Perform certain actions
}
var choices2 = $get('choices2_is');
if(choices2.dirty() === 'YES') {
// Perform certain actions
}
I am exploring options similar to the approach discussed here: , but I am unsure about how to access the object(s) from the parent.
Thank you, Mark