Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing class parameters programatically
#1
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">
Reply
#2
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.
Reply
#3
(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.
Reply
#4
[Image: clip0015.png]
Reply
#5
Yes, exactly what @MJS shows above. Sorry if I wasn't very clear
Reply
#6
I tried and it works. Thank you both, I knew it there should be an easy way.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)