SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot malluwood's Avatar
    Join Date
    Nov 2006
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation javascript array value to hidden box

    how can i take javascript array value to hidden box?
    please hep me

    Thanks

  2. #2
    SitePoint Evangelist
    Join Date
    Mar 2006
    Location
    Sweden
    Posts
    451
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <script>
    var r = new Array();
    r[0] = 'foo';
    r[1] = 'bar';
    document.getElementById( 'myhidden' ).value = r[0];
    </script>

    <input type="hidden" id="myhidden">


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
  •