getValue is returning HTML Document
Opened this issue · 0 comments
I have a project which i created HTML tags in JS.
var bodyHTML= "<div class='horizantalLine'></div>" + "<div class='dateInput'>" + " <div class='minDate'>" + " <span id='minDateLabel'> Dönem Başlangıç </span>" + " <input id='mindate' data-format='DD-MM-YYYY' data-template='D MMM YYYY' name='date' value='31-08-2018' type='text'>" + " </div>" + /* " <div class='maxDate'>" + " <span id='maxDateLabel'> Dönem Bitiş </span>" + " <input id='maxdate' data-format='DD-MM-YYYY' data-template='D MMM YYYY' name='date' value='31-08-2018' type='text'>" + " </div>" + */"</div>" $(".columnlist").append(bodyHTML)
and in another funcction i am trying to getValue but it returns me HTML Document Object instead of moment or datetime object:
`var minDate=$('#minDate').combodate('getValue',null)
console.log('mindate:', minDate)`
what can be the wrong?