Skip to Content Skip to Menu

[SOLVED] Text Area remaining character counter

  • nickr
  • nickr
  • OFFLINE
  • Posts: 49
  • Thanks: 2
  • Karma: 0
12 years 5 months ago #200117 by nickr
Replied by nickr on topic Re: Text Area remaining character counter
Thank you for the quick response Kyle.

The code works perfectly - sort of! The counters are working but not displaying because the <div> is within the <textarea> tags. Like so:

<textarea>"text here"<div id="remainingCharacters">927</div></textarea>

I've tried playing around with the code for ages but can't for the life of me figure out how to make the <div> appear outside of the <textarea> using this code as a basis.

Help very much appreciated.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
12 years 5 months ago #200221 by krileon
Replied by krileon on topic Re: Text Area remaining character counter
Right, it's just an example. Instead of doing an "append" you'll want to do "after" to add it after the input element. Please see the below documentation for jQuery usage information.

docs.jquery.com/Main_Page


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • nickr
  • nickr
  • OFFLINE
  • Posts: 49
  • Thanks: 2
  • Karma: 0
12 years 5 months ago #200223 by nickr
Replied by nickr on topic Re: Text Area remaining character counter
Thank you very much for your help on this. I've now managed to get it working successfully based on your advice.

Thanks.

Please Log in or Create an account to join the conversation.

  • lucvdr
  • lucvdr
  • OFFLINE
  • Posts: 12
  • Thanks: 1
  • Karma: 0
10 years 3 months ago #247510 by lucvdr
Replied by lucvdr on topic Re: Text Area remaining character counter
Dear Nickr, could you provide me the final codeing for this counter?

I can't get it working ...

luc

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum