Comment to 'Can "labels" be made obligatory in. posts, discussion, or videos?'
  • Here is the simple code for Posts to inform the user with the text alert about the empty Labels field. It is bound to the Title field's changes. You may expand it more if you need more conditions.

    </em></p><p><em>$(document).ready(function() {</em></p><p><em> $("#bx_posts input[name='title']").change(function() {</em></p><p> <em>var oLabels = $("#bx_posts input[name='labels[]']");</em></p><p><em>  if (!oLabels.length) {</em></p><p><em>    alert("bad");</em></p><p><em>  }</em></p><p><em> });</em></p><p><em>});</em></p><p><em>