Support » Plugin: Buddypress Xprofile Custom Fields Type » Limit the # of characters in a text area?

Viewing 2 replies - 1 through 2 (of 2 total)
  • A friend of mine Bobby Ray helped me out on this, we accomplished this with a little jquery script.

    You can modify the field #’s to suit your project and add this right above the body tag in the footer.

    <script>
    jQuery(document).ready(function($) {
    $(‘#field_882’).attr(‘maxlength’, ‘140’); // Text Area 1
    $(‘#field_1092’).attr(‘maxlength’, ‘140’); // Text Area 2
    });
    </script>

    Plugin Author Miguel López

    (@atallos)

    Thanks for the tip. I will add to the FAQ.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Limit the # of characters in a text area?’ is closed to new replies.