ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Web-specific functions / Miscellaneous WEBDEV functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Toggles a class in the HTML classes of a control: the class is added if it does not exist, the class is deleted if it already exists.
Note: It's also possible to find out and modify the value of a field's HTML "class" attribute via the HTMLClass property.
Example
HTMLClassToggle(SAI_Saisie1, "SaisieEnErreur")
Syntax
HTMLClassToggle(<Control> , <Class to toggle>)
<Control>: Control name
Name of the control to be used.
<Class to toggle>: Character string
Name of the class to toggle. If a class is found n times in the string, this class is toggled n times.
If several classes must be toggled, this parameter must contain the name of the different classes separated by space characters. Each class will be toggled independently.
Please note: Class names are case sensitive.
Component: wd300page.dll
Minimum version required
  • Version 20
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help