Word count in description box

Home Forums Calendar Products Community Events Word count in description box

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1123225
    William
    Participant

    Hello!

    My calendar project includes a print component so I need to keep the word-count down. I’m using javascript to show the wordcount in real time. Unfortunately, I can’t seem to properly assign an ID to the description box so the javascript has something to reference (right now the text area just has name=”tcepostcontent”). I was able to change a line in Main.php to give it an ID. But that file isn’t under “views” so it can’t be altered in the usual themer’s guide way, right?

    Or perhaps there’s some easier way to hook on to that text area. Any guidance you could provide would, as always, be most appreciated!

    • This topic was modified 9 years, 10 months ago by William.
    • This topic was modified 9 years, 10 months ago by William.
    #1123253
    Brook
    Participant

    Howdy William,

    I would love to help you with this.

    I see you are a Community user. Are you trying to select the front end event submission form or the backend editor? Is your goal just to select the object in Javascript/jQuery ?

    Cheers!

    – Brook

    #1123319
    William
    Participant

    Hey Brook- I’m trying select the front end event submission form, the description box to be precise. I have some jquery code that works if that textarea has an ID. (Not sure how else to reference an element.) Thanks!

    #1123652
    William
    Participant

    Nevermind- figured it out!

    #1123731
    Brook
    Participant

    Excellent! Yeah it can be a bit more difficult without an ID but totally doable. Happy you got it sorted, wish I was able to be of more help.

    Thank you for getting back. Cheers!
    – Brook

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Word count in description box’ is closed to new replies.