Not allow typing in a text input field using jquery

$('#id').keydown(function()
{
//code to not allow any changes to be made to input field
return false;});

in functie de clasa de css
$('.datepicker').prop('readonly', true)
Advertisements