SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Append Value

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    167
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Append Value

    How can I append the value to an input using javascript. I need the value to match an ID that I have in my database so that when I press the accept of deny button it will update mysql.

    I have this...

    input2.value = 'deny';

    I think I need this to be something like...

    input2.value = 'deny[$id]';

    What's the best way to do this?

  2. #2
    SitePoint Addict bronze trophy AllanP's Avatar
    Join Date
    Sep 2010
    Location
    Australia
    Posts
    298
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    input2.value=input2.value+"[id]";


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
  •