Atozed Forums

Full Version: Changing class parameters programatically
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I change class parameters programatically, for example, I'm using Bootstrap and would like to change class parameters at validation:

Original class parameter:

<input type="text" class="form-control">

If user write wrong information, I would like to change it to:

<input type="text" class="form-control is-invalid">
Any IW control will render the class attribute using the Css property value. Try to use 'form-control is-invalid' as the Css property of the input and see if you get the desired result.
(08-03-2023, 06:15 AM)Alexandre Machado Wrote: [ -> ]Any IW control will render the class attribute using the Css property value. Try to use 'form-control is-invalid' as the Css property of the input and see if you get the desired result.

I'm sorry, but how do I do that? I was hoping it would be enough just to change some property of IW control.
[Image: clip0015.png]
Yes, exactly what @MJS shows above. Sorry if I wasn't very clear
I tried and it works. Thank you both, I knew it there should be an easy way.