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

Thread: Using input of <input>-tag as a variable in external JS-file

  1. #1
    Join Date
    Aug 2014
    Posts
    4

    Using input of <input>-tag as a variable in external JS-file

    Hi,

    on my page I want to insert some sliders via
    <input type="range" value="...">

    I use jquery and an external js-file full of self-defined functions, which I know to use (the $(document).ready- command) . But: I would like to use the value obtained by the slider-value as a variable of my function.
    Does anybody know how to do that?
    Thank you
    Jotwie

  2. #2
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,887
    If its JQuery you need to be in the JavaScript frameworks forum.

    *** thread moved ***
    Last edited by jedaisoul; 08-18-2014 at 03:22 PM.
    STOP using $ prefix on JavaScript variable names...
    Please remember to wrap any code you have in forum tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  3. #3
    Join Date
    Aug 2014
    Posts
    4
    Never mind.
    Does anyone know a solution for my problem?
    Thank you,
    Jotwie

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