-->
$(function () { var showClass = 'show'; $('input').on('checkval', function () { var label = $(this).prev('label'); if(this.value !== '') { label.addClass(showClass); } else { label.removeClass(showClass); } }).on('keyup', function () { $(this).trigger('checkval'); }); });
No comments:
Post a Comment
Was this article helpful? Leave a comment...