trying to get the value of php into javascript -


$ dateyearange to enter

i yearreange : For example, my $ dateyearrange = 2001 then should be yearRange: 'dateyearrange: +0' yearRange: ' 2001: +0 ' but I can not seem to work it

Edit: The problem in my code is in the year :(' dateyearrange: +0 ') < / Code>

If I'm the same & lt ;? Php $ dateyear? & Gt; If the code will be executed, then the code will not be executed because if I use the yearRange: dateyearrange , then the output on the exchange is only 2001 that the code is working properly. So the problem in my code is in year: what i need yearrange 2001: +0

P> I I am very embarrassed for my English, I can not really convince myself of it.

Edit 2: (Solution):

I use yearRange: & lt ;; Php echo $ date year? & Gt ;: + 0 " and deleted var dateyearrange =" I have just made my code more complicated. I do not know why I go in that way Thank you for the answer. It helps me.

   

  & lt ;? Php $ date Era = date (" Y ", strtotime ($ Date Date)); & gt; Var dateminimum = & php $ $ datebirth;? & Gt; Gt;; Var dateyearrange = & lt ;? php echo $ dateyear? & Gt; $ (function () ($ ("(#datepicker)") ($ minDate: dateminimum, maxDate: '0', year limitation: ( 'Date-time-limit: +0'), date format: "yy-mm-dd", transcript: true, change year: true});});  
< / Html>

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -