Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Limit the size of user updates


thelandman
Participant

@thelandman

@pcwriter, the charlimitinfo will only display on the first activity item because you’ve specified for it to only show up on that specific div with that id. Here’s the solution:

`<textarea id="ac-input-” class=”ac-input” name=”ac_input_” onkeyup=”limitChars(this.form.ac_input_, 500, ‘charlimitinfo-‘)” />`

In each activity item the textarea has a unique name and id applied to it. The javascript function will now be called to each individual activity item.

Hope that helps :)

Skip to toolbar