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.


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting