|
<< Click to Display Table of Contents >> Navigation: Forum > Changing class parameters programatically |
08-01-2023, 10:06 AM:
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">
08-03-2023, 06:15 AM:
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-04-2023, 04:25 PM:
(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.
08-04-2023, 08:05 PM:

08-05-2023, 12:13 AM:
Yes, exactly what @MJS shows above. Sorry if I wasn't very clear
08-05-2023, 08:39 AM:
I tried and it works. Thank you both, I knew it there should be an easy way.