Help with dependant() method??
Help with dependant() method??

how can I implement the dependant() method on a field of type date. In other words I want to change the data that is contained in a select according to the date i selected in the date field. this is all in editor.
This discussion has been closed.
Answers
This is a simple example of
dependent()
when using dates - if the date is today, it changes the salary field. And this example shows how to modify selects - it adds it to the list if not already present.Colin
Colin take your second example and change it so that if you choose a row and edit it and then on the edit form you change the date via the date picker as soon as the date picker closes after you have chosen a date the selector field should reload with new values in the select. this is what I am trying to accomplish so basically this is the code I have
Below is test code this is where I have a problem if I type the date manually meaning with the keyboard and I click away from the field this code will run because the date field changed, BUT if i choose the date on the date picker that appears and the date changes this code doesn't run.
hide
andshow
are used to remove fields, not values from selects. I've updated my example to put those two elements together - the select is being updated and a field is being hidden.Colin