This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

make one drop down equal another on change

Discussion relating to version 1.3.x and 1.4.x

make one drop down equal another on change

by carden » Thu Nov 20, 2014 9:54 pm

How can I make my drop down box equal to another one when it is changed?

Code: Select all
    $this->setDefault('date', date('d-m-Y', time()));
    $this->setDefault('available_start_time', "12-12-2012 12:12");
    $this->setDefault('available_end_time', date('d-m-Y H:i', time()));
    $this->setDefault('purchasable_end_time', date('d-m-Y H:i', time()));
    $this->setDefault('publish_time', date('d-m-Y H:i', time()));
    $this->setDefault('is_free', "0");


the available end time I want to have purchasable end time equal the same value when a user changes available end time
carden
Junior Member
 
Posts: 2
Joined: Thu Nov 20, 2014 9:33 pm