cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Tutkowski <mike.tutkow...@solidfire.com>
Subject JavaScript Question
Date Wed, 06 Nov 2013 05:50:33 GMT
Hi,

Does anyone know why this checkbox of mine always returns false?

if ($isCustomizedIops.is(':checked')) {
    // do some stuff
}

That code is part of an event handler for a combobox (when the combobox
changes to a certain state, I want to see if the checkbox that is revealed
is in the checked state):

args.$select.change(function() {
    var $isCustomizedIops = $form.find('.form-item[rel=isCustomizedIops]');

    if ($isCustomizedIops.is(':checked')) {
        // do some stuff
    }
}

The checkbox is set up like this:

                                    isCustomizedIops: {
                                        label: 'label.custom.disk.iops',
                                        docID:
'helpDiskOfferingCustomDiskIops',
                                        isBoolean: true,
                                        isReverse: true,
                                        isChecked: false
                                    },

Thanks!

-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message