I know there are tons of examples on how to show or hide a div based on click or hover or some kind of user event. I’m looking for a java script sample or jquery sample that shows or hides a div based on weather the div has value. In other words. I am displaying a list of concerts in your area. If there are no concerts in your area another div should be displayed instead saying “there are no concerts in your area”.
This needs to happen on page load. Without any user involvement.
Anyone ever used something like tis or a=can point me to a link that shows how to do this?
Thanks
Oceantrain
There are tons of example to do this
Generally people use this to check/condition on value.
Secondly
With you can use text() or html()…
Something like
var text = jQuery("div").text();