Thanks a lot, It works nice.. .I made some changes to make it Limit for Title and for specific post type :) , dont forget to change Your-Post-Type-here by the post type you want.
here is the code…
add_action( 'admin_print_footer_scripts', 'check_title_length' ); function check_title_length() { global $post_type; if ('Your-Post-Type-here' != $post_type) return; ?> jQuery(document).ready(function ($) { // Set your character limit var count_limit = 70; // Set the initial symbol count on page load $('#title-wc span.number').text($('#title').val().length); $('#title').on('keyup', function () { var char_count = $(this).val().length; var excerpt = $(this).val(); // Update the character count on every key up $('#title-wc span.number').text(char_count); if (char_count >= count_limit) { $('#title-wc span.number').css('color', 'red'); $(this).val(excerpt.substr(0, count_limit)); } else { $('#title-wc span.number').css('color', ''); } }).after('<p id="excerpt-wc">Count: <span>0</span></p>'); }); <?php }