0

how to set the minvalue=today and max value=today+30 in javascript or how to do it in jquery what are the files i need to download .plz explain me i never used jquery before .

Edited by hiiiiii@

3
Contributors
7
Replies
36
Views
3 Years
Discussion Span
Last Post by hiiiiii@
0

Why not use a html5 input? No javascript required. Just min and max attributes.

http://jsfiddle.net/diafol666/Rp9L6/

You set min/max/value via php. Example. You need to get today and today+1 month. Have a look at the code I gave you in another thread.

min="<?php echo $min;?>"
0

If you really need these variables set in JavaScript then you might do the following:

var today = new Date(),
  nextMonth = new Date();

nextMonth.setDate(nextMonth.getDate() + 30);
0

Mr diafol, if i use html inputs it doesnt support in firefox ..and i need to change the date dynamically for every months na html does not help in that na ..

0

i am using jquery datepicker ..i want to change the size od datepicker .how to change ?it doesnot fit into my page .i have attached the file check and give me the solution

Edited by hiiiiii@

0

i have attached the file check and give me the solution

No you haven't. This is not php anymore, so perhaps you should mark this thread solved and go to a more appropriate forum.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.