Can't insertValueB class attribute.

4 views
Skip to first unread message

Watt

unread,
Apr 9, 2009, 1:39:42 PM4/9/09
to Flapjax
Hi,

I am using Flapjax 2.0. I am having difficulty in trying to insert
value into class attribute of an input element

insertValueB(ifB(readyForSubmissionB, 'enabled', 'disabled'),
'input1', 'class');

There must be something that I am missing here because when I change
the class attribute to value, things seem to work fine. I see enabled
or disabled string coming through. Any suggestion is appreicated.



Watt P.

Leo Meyerovich

unread,
Apr 9, 2009, 1:43:55 PM4/9/09
to fla...@googlegroups.com
Try "className" :) This is a quirk with JavaScript/DOM, not Flapjax.

I wonder if we should create a petition or surveypoll for the W3C about
this.

- Leo

Watt

unread,
Apr 9, 2009, 9:30:08 PM4/9/09
to Flapjax
It was frustrating to come across something like this for sure. But
your answer did the trick. Thanks for your help.
Reply all
Reply to author
Forward
0 new messages