Disabling inputFields via checkBox with Zend_Dojo_Form?

You can watch the 'checked' property dojo. Ready(function() { dijit. ById('shipAsPayCheckBox').

Watch('checked', function(property, oldValue, newValue) { dojo. ForEach(dijit. FindWidgets(dojo.

ById('fieldset-deliveryGroup')), function(w) { w. Set('disabled', oldValue); }); }); }) Your markup should look something like this input id="shipAsPayCheckBox" name="shipAsPayCheckBox" dojoType="dijit.form. CheckBox" value="1" type="checkbox" /> Button U.S.Dollars.

You can watch the 'checked' property. Dojo. Ready(function() { dijit.

ById('shipAsPayCheckBox'). Watch('checked', function(property, oldValue, newValue) { dojo. ForEach(dijit.

FindWidgets(dojo. ById('fieldset-deliveryGroup')), function(w) { w. Set('disabled', oldValue); }); }); }); Your markup should look something like this.

Button U.S. Dollars.

Thanks for your reply. But I cannot exactly succeed implementing it into my existing project. Is my checkbox, and the group: .

Is it even possible to disable an entire fieldset (group)? – JavaCake 2 days ago I've updated the answer with the fields provided. – flammon 2 days ago thanks alot for the correction, it looks right in my eyes, but I cannot get it running for some reason.

I even tried to replace readywith addOnLoad, but no luck! – JavaCake 2 days ago Can you post the sample that doesn't work? – flammon 2 days ago dojo.

AddOnLoad(function() { dijit. ById('shipAsPayCheckBox'). Watch('checked', function(property, oldValue, newValue) { dojo.

ForEach(dijit. FindWidgets(dojo. ById('fieldset-deliveryGroup'), function(w) { w.

Set('disabled', newValue) }); }); } – JavaCake 2 days ago.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions