dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Simple javascript syntax

  1. #1
    Join Date
    Feb 2011
    Posts
    10

    Simple javascript syntax

    Hey everyone,

    I'm looking to grab a value from a textbox like so:

    var textboxvalue = form.textboxname.value;

    However, my "textboxname" is a variable that stores the name of the textbox. is there any way of doing this?

    Help is appreciated. Thanks!
    -IM Greg.

  2. #2
    Join Date
    Feb 2011
    Posts
    10
    Hoorahhh. I figured out something for myself for once

    just need to use the "eval()" function. Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles