I have “enter date” text input field in my registration form. Is there anyway, to put checkbox “Today” near the input field “date” and fill current date ontick, clear on untick? P.S Format must be DD.MM.YYYY
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming that your checkbox has id=”todayBox” and your date field has id=”enterDate”, you would use this jQuery code:
You can see it in action here: http://jsfiddle.net/jfriend00/d3t5Z/.