troubleshooting Question

JQuery Set date in url

Avatar of error77
error77 asked on
JavaScriptAJAX
10 Comments1 Solution447 ViewsLast Modified:
Hi all,

I am using a JQuery plugin. What I basically need to do it to set a date from a link.

The way I set the date on a page load is the following:

<script language="javascript">
      $(document).ready(function() {
      
         var queryDate = ('2011-05-10');
        $('#date').val(queryDate);

....

I need to do the same but I need to create a link on page A and set it from there.

So, Page A link, links to this page and it sets the parameter.

something link: <a href="index.php?"mydate"">link to main page</a>

Does it make sense?

Thanks

ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros