Hi I am using datepicker plugin in contenteditable element.Have to select the datepicker value in the contenteditable div. Html:
<div class="sample">
<input name="date" class="datepicker-input" />
<div class="date1" contentEditable="true">test</div>
</div>
Script:
$('.date').click(function() {
$(this).parent().find('.datepicker-input').focus();
$(".datepicker-input").blur(function(){
var valuew = $('.datepicker-input').val() ;
console.log(valuew);
$(".date1").val(valuew);
});
});
the datepicker value is not assign to the div.If i use type hidden to datepicker is datepiker calender not showing.