![]() |
|
Changing class parameters programatically - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Changing class parameters programatically (/thread-3390.html) |
Changing class parameters programatically - bostjan - 08-01-2023 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"> RE: Changing class parameters programatically - Alexandre Machado - 08-03-2023 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. RE: Changing class parameters programatically - bostjan - 08-04-2023 (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. RE: Changing class parameters programatically - MJS@mjs.us - 08-04-2023
RE: Changing class parameters programatically - Alexandre Machado - 08-05-2023 Yes, exactly what @MJS shows above. Sorry if I wasn't very clear RE: Changing class parameters programatically - bostjan - 08-05-2023 I tried and it works. Thank you both, I knew it there should be an easy way. |