No input input input function



  • Good day, who can help, the programme has to receive very many input elements, wanted to optimize this action in such a way as:

    function get (id){
        var x = document.getElementById(id);
    
    return parseFloat(x.value);
    

    }

    It's simple: get(something)Just in. id from the right input, by not declaring it, after that, everything stopped working, and plus it says, Unresolved variable or type♪ You can't do that, or did I just dig up where?



  • It's a great website, when I write this question, it becomes clear that it's not, you see the shame in front of the collars the brain. Well, it's working, but it's only when you hand it over to the id to take it to the skirts:

    get("something");

    Yeah, well, one more question, maybe someone writes how to remove out of here, or the second time I get it, it's embarrassing.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2