I have objects: object S and oject SD.
//form group startTime
formStart = $(fstart).clone();
s = $(d).clone();
$(s).addClass('input-group date datetimepicker-s').html(startTime);
sd = $(d).clone();
$(sd).addClass('input-group date datetimepicker-s').html(startDate);
And I want to put them in one group as follows:
$(formStart).html(s,sd).prepend('<label>Begintijd</label>');
But maybe it is very obvious, it does not work. My question is whether it is possible to add multiple elements in .html () or can I do this:
$(element).html().html();
source
share