Web component: j-Selected


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-Selected

The component can set a specific class to a specific element according to the simple condition.

Configuration:

Example: data-jc-config="class:selected;selector:a"

  • class {String} (optional) is a class name for selected element
  • selector {String} (optional) is a jQuery selector

Usage:

Each nested element according to the selector must have defined data-if attribute. It works only with strings values.

Author

Browser‘s Save action performs Preview