Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
Using jquery's post method I need to send that date to an external file and then do some fun stuff with it server side. I know how to structure the function with the post method by I don't know how to pass the date as a parameter, ie. how to access it.
All the tutorials I've seen use forms so they have onclick events which just grab the id of the element, which doesn't help me for a few reasons. (Elegant deprecation for onclick, and multiple variables.) I would even be fine with passing the entire url and parsing it server side. I just need to post that date!
Does anyone familiar with jquery have an idea?
Then in your JS you can access / post the variable like so:
//do something here onn call back
hope this helps
var prefix = 'date_';
var date = this.id.substring( ( prefix.length ) );