www.webdeveloper.com
Results 1 to 3 of 3

Thread: remove value from quotes

  1. #1
    Join Date
    Aug 2012
    Posts
    3

    remove value from quotes

    hello,

    I have a var that I need to turn into an object or remove from a string

    var value = "user";

    I need to remove user from the " " so I can use in another var

    var w = rec.value;

    the current problem is right now I am getting a result of w = undefined because the value is reading rec."value" instead of rec.value

    any help is appreciated.

    thanks!

  2. #2
    Join Date
    Jul 2011
    Posts
    24
    var w = rec[value]

  3. #3
    Join Date
    Aug 2012
    Posts
    3
    that worked perfect!! 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