Click here to Skip to main content
15,904,652 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
This is my Code
@Html.TextBoxFor(model => model.DateOfBirth, new { @class = "datefield form-control" })


<script>
$(document).ready(function () {

$(".datefield").datetimepicker({
format: 'DD/MM/YYYY hh:mm:ss',
container: '.scrolling-content',
defaultDate: new Date()
});
})
</script>

CSS
.scrolling-content {
    position: relative;
}


Help me??
Posted
Comments
Sergey Alexandrovich Kryukov 24-Dec-15 0:33am    
Not clear. What should be relative to what? Perhaps you need to know that the names of position values are very misleading.
—SA
Member 11970999 24-Dec-15 0:52am    
iam getting that error while my using datetimepicker for a textbox

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900