Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Urgent Help Needed!!!!!!!!

Urgent Help Needed!!!!!!!!

Scheduled Pinned Locked Moved Web Development
javascriptcomhelptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sushant_Mathur
    wrote on last edited by
    #1

    Hi, Plz tell me how to count number of chars in a Select Box using javascript. Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm

    G V 2 Replies Last reply
    0
    • S Sushant_Mathur

      Hi, Plz tell me how to count number of chars in a Select Box using javascript. Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      I assume that you mean the number of characters in the options that are displayed in the select box. Loop through the options collection of the select box and add upp the length of the text property for each option. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • S Sushant_Mathur

        Hi, Plz tell me how to count number of chars in a Select Box using javascript. Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        Sushanth, All displayed stuff in a Dropdown in available in options array with .Text and .Value properties. You can loop through this and get the length and/or the cumulative length of all strings. Is'nt it? Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://www.dotnetjunkies.com/weblog/deepak/
        http://deepakvasudevan.blogspot.com/
        http://deepak.blogdrive.com/

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups