This topic is locked
[SOLVED]

 Using Jquery In Phprunner6.2 To Populate Dropdown List

4/3/2013 12:19:45 PM
PHPRunner General questions
S
Suety29 author

Hi,
I would like to use jquery to get a date from a date field with a datepicker and use the day of the week from this date, to filter a flight dropdown list. Can anyone help me?
Thanks in advance.

C
cgphp 4/4/2013

Filtering dropdown requires AJAX call. You will need some custom code to accomplish this. Check these links as starting point:
Getting value from text input: http://api.jquery.com/val#example-1

Day of the week: http://www.w3schools.com/jsref/jsref_obj_date.asp

AJAX call: http://api.jquery.com/jQuery.ajax/

S
Suety29 author 4/4/2013



Filtering dropdown requires AJAX call. You will need some custom code to accomplish this. Check these links as starting point:
Getting value from text input: http://api.jquery.com/val#example-1

Day of the week: http://www.w3schools.com/jsref/jsref_obj_date.asp

AJAX call: http://api.jquery.com/jQuery.ajax/


Thanks for the response. do i place the custom code in a javascript onload event?

C
cgphp 4/4/2013

Correct.