Member Avatar for elninomago

Hello,

I'm trying to get a form select disabled. The problem occurs with the 2nd line, the first line disables correctly, but all subsequent disables do not work.

Here's the partial code:

[footwear_inst.addDisable( {'Gender':'Womens', 'Style':'300'}, ['size_10-5', 'size_11-5', 'size_12', 'size_13', 'size_14', 'size_15'] );
            footwear_inst.addDisable( {'Gender':'Womens', 'Style':'500'}, ['size_5', 'size_5-5', 'size_10-5', 'size_11-5', 'size_12', 'size_13', 'size_14', 'size_15'] );

            footwear_inst.addDisable( {'Gender':'Mens', 'Style':'100'}, ['size_5', 'size_5-5', 'size_6', 'size_6-5', 'size_14', 'size_15'] );
            footwear_inst.addDisable( {'Gender':'Mens', 'Style':'200'}, ['size_5', 'size_5-5', 'size_6', 'size_6-5', 'size_14', 'size_15'] );
            footwear_inst.addDisable( {'Gender':'Mens', 'Style':'300'}, ['size_5', 'size_5-5', 'size_6', 'size_6-5', 'size_14', 'size_15'] );
            footwear_inst.addDisable( {'Gender':'Mens', 'Style':'Deluxe', 'Width':'D - Standard'}, ['size_5', 'size_5-5', 'size_6', 'size_6-5'] );

            // Creates the <table> and dynamically adds it to the form.
            footwear_inst.makeTable();]

So, the select for 'Womens','300' works. But that's it.

Please help

Thanks in advance.

Member Avatar for elninomago

Please disregard. I've fixed the problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.