News for hackers. Stuff that matters.
Re:Tell HN: Thank you for interface change by thaumaturgy on Thursday December 04, 2014 @01:08PM (#8700639)

    <script type="text/javascript">document.getElementById('title').onkeyup = function(){document.getElementById('warning').innerHTML = this.value.length > 80 ? this.value.length + ' / 80 maximum characters' : '';return true;};</script>
Requires setting an "id" attribute on the title input field and then adding another element underneath of it with a "warning" id (<br><span id="warning"></span> works nicely).

There are no comments on this comment yet.