"required" attribute is purely cf attribute. there is no HTML 'required'
attrib in <input> fields.
if you look at the generated source code of your page you will not see
any 'required' attributes in the generated input fields.
when cf compiles the page, it replaces the required attribute with
necessary js to perform form validation.

bottom line: there is nothing to manipulate.
you should write your own form validation js based on ids/classes, which
can then be changed with an onlick events and will either trigger
validation or not.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Uwe Degenhardt wrote:
> Hi list,
> I cant get to a solution
> of the following problem.
>
> I have a cfinput-field like:
> a) <cfinput type="text" name="billing_contact" required="no"> or
> b) <cfinput type="text" name="billing_contact" required="yes">
>
> A javascript should manipulate the cfinput either like:
> required="yes" or
> required="no"
>
> How can I do this ? With the onclick-attribut ?
> But this doesn't influence the required-attribut.
>
> Uwe
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302339
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to