Loading...
 
Features / Usability

Features / Usability


Hiding Div with JQ and Pretty Tracker

posts: 41 US

Hello,

By the title my objective should be clear, I wish to hide a Div that contains a title and a #f_numer in it when there is no data filled in the template. Here is my current JQ:

NOTES
div Id="release"
ins_14= $f_14

CODE

if(!$("#ins_14").val()) { $("#release").hide(); }


Note sure where I am going wrong.

Thanks

posts: 1817 Catalan Countries

Hi avocadocommander:

No idea what's wrong (I'm not an expert either), but you can play with a profile where many working examples are up & running. Apply this profile in a testing tiki 12.x for you:

https://profiles.tiki.org/Conditional_Display_in_Forms

 

Hope it helps

 

xavi

P.S: There is a work-in-progress for Tiki14, but unfinished yet, afair.