Set multiple text fields from a single select box.
I have a select box with the id weekSelect having the following format...
<option value="21/01/2013|27/01/2013">
2013 - 4
</option>
So far I have the following jquery setting test values to two text fields.
$("#weekSelect").change( function() {
$("#startDate").val("Test 1");
$("#endDate").val("Test 2");
});
The question is how do I take the value from the selected option and put the two dates into the two text fields?