CoCreate-conditional-logic
-CoCreate-conditional-logic
+- Simple JS component show hide elements conditionally with - inputs,checkbox,radio,btn etc.Great for creating tabs, - accordions, dynamic forms, etc. Easy Configuration using HTML5 - data attributes and/or JavaScript API -
- ++ Simple JS component show hide elements conditionally with + inputs,checkbox,radio,btn etc.Great for creating tabs, accordions, + dynamic forms, etc. Easy Configuration using HTML5 data attributes + and/or JavaScript API +
+npm i @cocreate/conditional-logic
+ + Or you can use cdn link: +
+<script>https://cdn.cocreate.app/conditional-logic/latest/CoCreate-conditional-logic.min.js</script>
-
- - This is conditional-logic usage -
+ ++ This is conditional-logic usage +
-++--<h5 style='color:blue'>Toggle</h5> <div hide='#testdiv,#div2' show='.testdiv,.div2'> @@ -180,169 +191,164 @@
Usage
<div id="div2" class="hidden div2"> Only SHOW2</div>- This is conditional-logic usage -
-
+ This is conditional-logic usage +
+-
-
-
-
- show - string - optional -
-selector of elements to display
-
- -
-
- hide - string - optional -
-selector of elements to hide
-
-
-
+
-
+
+ show + string + optional +
+selector of elements to display
+
+ -
+
+ hide + string + optional +
+selector of elements to hide
+
+