How do I post values obtained from an html form to an URL using javascript? -


i'm new html , js , have form few fields need posted url.

<form>     <div>         <label style="font-size:16px" for="title">title:</label>         <input type="text" id="title" maxlength="128"/>     </div>     <div>         <label style="font-size:16px" for="description">description:</label>         <textarea id="description" maxlength="1999"></textarea>     </div>     <div>         <label style="font-size:16px" for="idnumber">idnumber:</label>         <input type="number" id="idnumber"/>     </div> </form> 

i need values entered form posted url knows how process input. i'm sure easy i'm new , i'm having trouble finding solution. apologies incorrect terminology. thanks!

you can use action attribute:

<form action="some/url" method="post"> <!-- ... --> <input type="submit" value="submit" /> <!-- submit button --> </form> 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -