SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot php.net's Avatar
    Join Date
    Oct 2003
    Location
    php.net
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IP Address Textbox

    Hello all,

    I need today small thing, i need to make ip address textbox like attach image.

    Thanks
    Attached Images Attached Images

  2. #2
    SitePoint Zealot php.net's Avatar
    Join Date
    Oct 2003
    Location
    php.net
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any one can tell me how i can make that.

    thanks

  3. #3
    SitePoint Evangelist NokX's Avatar
    Join Date
    Feb 2003
    Location
    Knoxville, TN
    Posts
    523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by php.net View Post
    any one can tell me how i can make that.

    thanks
    i would just use 4 separate text boxes with a . in between each one.

    Code HTML4Strict:
    <input type="text" /> . <input type="text" /> . <input type="text" /> . <input type="text" />

  4. #4
    SitePoint Enthusiast WMX's Avatar
    Join Date
    Sep 2008
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Building on what NokX says, you could hide the border of the 4 text inputs with css and place then within a div and give the div the same border you use for you other text inputs. You could also have the cursor jump to the next ip box when the current one has 3 numerals in it.
    ~


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •