www.webdeveloper.com
Results 1 to 2 of 2

Thread: getting number put in input box into a line of javascript code

  1. #1
    Join Date
    Sep 2009
    Posts
    8

    getting number put in input box into a line of javascript code

    I'm not a coder in any way, so I need help tweaking this script of mine:

    Here's the code:

    <form>
    <input type="text" id="Number"> <<The number is input here
    <a href="javascript: update_rating(1, >>I need that number to be here<< ) ">Click Here</a>
    </form>

    How do I do it?

  2. #2
    Join Date
    Sep 2009
    Posts
    8

    Got it!

    I got the answer, it's

    <form>
    <input type="text" id="Number">
    <a href="#" onClick="javascript: update_rating('.$ident.', document.getElementById('Number').value);return false;">Update</a></form>

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