File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Count number of characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Count number of characters" Watch "Count number of characters" New topic

Count number of characters

Sapan Shah

Joined: Jan 01, 2010
Posts: 25
I want to count a number of dot(.) in a string which i am entering in a textfield.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
I don't see a question in there ... does the code not work? If so, how does it deviate from what you expected it to do?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can not use document.write after the page load.

Note: when you post code, please use code tags. Select the code and click the wonderful button that says "Code" on it.

I agree. Here's the link:
subject: Count number of characters
jQuery in Action, 3rd edition