
// function updateCount()  {

//$('#characters').text(cs);
// }
$("#id_lead").on("change paste keyup keydown keypress", function(){
    console.log("funktion");
    var cs = $("#id_lead").val().length;
    document.getElementById("characters").value = cs+"/160";
});


//$('#id_lead').on('input', updateCount());



// function updateCount()  {

//$('#characters').text(cs);
// }

$(document).ready(function()
{
    $("#id_lead").attr('maxlength','160');
});

$("#id_lead").on("change paste keyup keydown keypress", function(){
    console.log("funktion");
    var cs = $("#id_lead").val().length;
    document.getElementById("characters").value = cs+"/160";
});



//$('#id_lead').on('input', updateCount());


Change the article_lead to only allow 160 characters in the input form.
631: Change the article_lead to only allow 160 characters in the input form.
