vitalets / combodate

Dropdown date and time picker
http://vitalets.github.com/combodate
207 stars 82 forks source link

Multiple drop downs #6

Closed sabotawsh closed 10 years ago

sabotawsh commented 11 years ago

I'm an amateur with javascript so my apologies if this is a stupid question, but how can I implement two drop downs (for #datetime24)? My code will only show one. The second shows an input field.

Example below will only work once in a list:

    <div class="event-item">
        <label for="date">End Date and Time</label>
        <input type="text" id="datetime24" data-format="DD-MM-YYYY HH:mm" data-template="DD / MM / YYYY     HH : mm" name="datetime" value="21-12-2012 20:30">
        <script>
            $(function(){
            $('#datetime24').combodate();  
            });
        </script>
    </div>
vitalets commented 11 years ago

It's strange, your code is working: http://jsfiddle.net/5m6gG/1/

vitalets commented 10 years ago

closing as too old. please feel free to reopen if issue still exists.