vitalets / combodate

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

How can i set default value? #41

Open kesavankrishnan opened 9 years ago

kesavankrishnan commented 9 years ago

How can i set default value?

abousamra commented 9 years ago

there is an option called "value" set it with the specified "format"

runarb commented 9 years ago

i.e:

$('element').combodate({        
    value: moment().format('DD-MM-YYYY')
});
prashanttah commented 8 years ago

how can i dynamically initialise the value.I am using jquery but $.val() doesnt worl with this