Loading...
 
Development

Development


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.

There are no comments at this time.