There are a list of CSS class binded with jQuery
Click here to confirm, class=confirm, data-confirm=msg to confirm
class=dollar, format input as dollar eg 1,234.56
class=number, format input as number eg 1,234.567
Click here to pop up Example 2
You have a list of siblines of eg divs one after another, click on one open the next and close all others
Code example
There are exactly 2 kids inside tabs
The 1st kid is the headlines to click, add class="on" to the active one
The 2nd kid is the text of 1st kid, add class="on" to the active one
The tree look nested, however the code [div] not nested, instead they are siblines. The ids of the divs look like nested kids.
This is a demo of class="tree"
1. id = abc
2. id = xyz
2.1 id = xyz-123
2.1.1 id = xyz-123-cat ... some text
2.2.2 id = xyz-123-dog ... some text
2.2 id = xyz-888
2.2.1 id = xyz-888-cat ... some text
2.2.2 id = xyz-888-dog
class="show" data-src="target"; target can be anything eg html tag, id, class, etc
The following is a list of controllers, please click to see the effect
class="show" data-src="#showID" src=".showDemo" src="#showDemo b" defa next Im next
The following is a list of targets, which will demo talking to above controllers.
id="showID" class="showDemo" Im b inside #showDemo
show can also close parents -- click here to reset the box below:
class="js-kid" data-kid="css1 css2"
copy classes in data-kid to all it's kid elements
class="js-kid" data-src="src or int" data-css="css"
copy data-css (if no css then "on") to children(src), if src is int, then :nth() kid
Imagine you have a horizontal form-group of label and input in each line:
You can use formH to push all class to each kid and kid.label and kid.input etc
Here is the result of above
If a form without label, it's more simple just use js-kid
And here is the result of above code:
6.10.1 - pgno with direct link eg a href="?page=2&key=var" (class=pgno + data-url and/or data-param)
And here is the result of above example
And here is the result of above example
6.10.2 - pgno on click to send a form (class=pgno + data-id)
And here is the result of above example
[div class="youtube"]youtube-id[/div] will become the following:
6.13.1 ajax (default cmd = on change)
eg If you change the country to CN, it will get data from /api?country=CN and populate content for select name="state" accordingly
6.13.2 ajax (cmd = on click)
eg on click, it will get data from data-url, then update the html code for data-src accordingly
eg on click, it will get data from data-url, then update the html code for self if no data-src specified
Dev note: .upload position seems buggy once you put it inside a cell, not not clickable, but position is misleading (still clickable, but hard to find where to click)
[img class="load-img" data-src="url-of-img"]
Topnew CMS Apps
» Topnew CMS Core
» Blog, Support, Ticket
» Page Maker CMS
Independent Apps
» BenSon Bank
» PHP SVG Chart
» SIDU DB Admin GUI
Topnew CMS
» Secure PHP Login
» Wiki & Support
© 2018 TOPNEW CMS