Giter Site home page Giter Site logo

paribhandarkar / real-time-character-counter Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

I created a text area with real-time character count and limit functionality using JavaScript

Home Page: https://paribhandarkar.github.io/real-time-character-counter/

HTML 40.24% JavaScript 19.76% CSS 39.99%
30-days-of-code 30daychallenge 30dayscodechallenge 30daysofcode 30daysofjavascript character-counter css html javascript js

real-time-character-counter's Introduction

Real-time Character Counter

For this project, I'm creating a text area with real-time character count and limit functionality using JavaScript. I want to provide a user-friendly experience for anyone filling out a form or input field by letting them know how many characters they have remaining as they type, and preventing them from typing any more characters once they've reached the limit.

I'm using JavaScript to dynamically update the total character count and remaining characters in real time, as the user types. Once they reach the character limit, I'm disabling the text area and changing the remaining character count to zero, so the user knows they've hit the limit.

Demo

You can try out the application by visiting this link.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Getting Started

To get started with this project, clone the repository and open the index.html file in your preferred web browser.

New Things I Learned

Learned about the addEventListener ("keyup") and how the function you specify is executed when a user releases a key on their keyboard. This can be useful for implementing keyboard shortcuts or performing live search as a user types in a search box.

image

real-time-character-counter's People

Contributors

paribhandarkar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.