javascript - Conditional Date with Jquery -
I'm still trying to understand the Jquery syntax. I was almost certain that I had the following script right, although the warning I am showing (if the day is Monday), without any regard to the situation, it appears that any help is very commendable. To recapture, I want this warning to be automatically visible, if the day is equal to Monday.
& lt; Script & gt; Var Mon = New Date () GetDay (); If (mon = 2) {$ (document) .ready (function () {alertify.alert ("example message");}); } And {} / Script & gt; Note: Note: still shows the message using the script (I believe) Tuesday = 2
looks for == = Attribution is & lt; Script & gt; Var Mon = New Date () GetDay (); If (mon == 2) {$ (document) .ready (function () {alertify.alert ("example message");}); } And {} / Script & gt; Mon = 2 will specify value 2 for variable moons. Mon == 2 will verify that Mon 2 equals
Comments
Post a Comment