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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -