Re: Re: Hiding Div with JQ and Pretty Tracker

posts: 41 US

Its interesting that when I use the above JQ code, the DIV is hidden if there is something or nothing. So i know that that jq with the DIV is working, because it is hiding it. I think that my problem is understanding how to say "Does my text area field 'Release Notes' have any text in it?

I have tried

if (!$("#ins_14").text())

if (!$("#ins_14").val().text())

if ($("#ins_14").val() === '')

if ($("#ins_14").val() === "")

if ($("#ins_14").text() === '')

if ($("#ins_14").text() === "")

Some hide both empty and filled test cases while some show both.

Upcoming Events

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.