ph-toggler attribute

Toggle the state of an html element.

<textarea id="textarea-to-clipboard" style="width:100%;">Toggle me</textarea>
<button class="btn" type="button" ph-toggler="prev!..textarea" ph-config="ontext::Hide textarea,offtext::Show textarea">Hide textarea</button>

extra attributes for this helper:

name description link
ph-config ontext and offtext. default is class=display, switch between block and none  
ph-toggler prev!tag, next!tag, prev!..tag or css selector.  

Back to top

Discord, QQ group:418474680