Basic if else syntax question
I have a simple jQuery code that shows or hides a DIV based on the selected value of a select tag.
Currently it looks like this and it's working fine:
if (selected == "0") jQuery("#divPublishDate").show('slow')
I want to add an else so that the if the value is anything other than 0, I want to hide the div.
What's the proper syntax in this case? I assume this is the short version of an IF statement without the { }.
Thanks,
Sam