Solved

How to trigger an event with jquery?

Posted on 2012-03-28
2
333 Views
Last Modified: 2012-03-28
I have two text boxes as a date fields and I need that after altering the first one, the second one automatically shows a new date (a month after the previous date)

The second field can be modified manually, the event only must be triggered after altering the first text box / date.

Regards.
0
Comment
Question by:dimensionav
2 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 250 total points
ID: 37776573
you can bind the blur event to first textbox

$("#textbox1").bind("blur", function(){

 $("#textbox2").val(calculateNextDate());
});

function calculateNextDate()
{
}
0
 
LVL 109

Assisted Solution

by:Ray Paseur
Ray Paseur earned 250 total points
ID: 37776728
You might make a Google search for "jQuery Date Picker" - there are a lot of solutions that will work for this sort of thing.  Not exactly what you want but a good demonstration of the principles is available here:
http://jqueryui.com/demos/datepicker/
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question