zab
4 Apr 2008, 3:48 AM
Hi,
I have checkbox in a panel (not in a form) and I want to implement a button which check all the checkboxes.
I try with setValue but there is an error on firebug :
myCheckBox.setValue is not a function.
It's very strange because other functions like setVisible (for example) work.
Here the code corresponding on the handler of my button :
function tout_cocher(){
var myCheckBox = Ext.get(document.getElementById('check_id0'));
myCheckBox.setValue(true);
}
it's a test, so it point at only one checkbox.
PS: sorry for my english... :">
I have checkbox in a panel (not in a form) and I want to implement a button which check all the checkboxes.
I try with setValue but there is an error on firebug :
myCheckBox.setValue is not a function.
It's very strange because other functions like setVisible (for example) work.
Here the code corresponding on the handler of my button :
function tout_cocher(){
var myCheckBox = Ext.get(document.getElementById('check_id0'));
myCheckBox.setValue(true);
}
it's a test, so it point at only one checkbox.
PS: sorry for my english... :">