With JavaScript:
var input = document.createElement("input");
input.type = "text";
input.className = "css-class-name"; // set the CSS class
container.appendChild(input); // put it into the DOM
More Related Contents:
- html form that passes information to a variable in javascript [closed]
- JavaScript code to stop form submission
- Submit form without page reloading
- Why does forms with single input field submit upon pressing enter key in input
- How do I cancel form submission in submit button onclick event?
- Disable form auto submit on button click
- Best Practice: Access form elements by HTML id or name attribute?
- How to do a Jquery Callback after form submit?
- How to submit a form with JavaScript by clicking a link?
- How to submit an HTML form without redirection
- How to convert Base64 String to javascript file object like as from file input form?
- Form Submit Execute JavaScript Best Practice? [closed]
- HTML input type=file, get the image before submitting the form
- How to ensure a form field is submitted when it is disabled?
- Property ‘submit’ of object # is not a function
- Decoding URL parameters with JavaScript
- Adding rows dynamically with jQuery
- Best JavaScript solution for client-side form validation and interaction? [closed]
- HTML/JavaScript: Simple form validation on submit
- How to show setCustomValidity message/tooltip without submit event
- Dynamically creating a specific number of input form elements
- Trigger standard HTML5 validation (form) without using submit button?
- How to set custom validation messages for HTML forms?
- Trigger standard HTML validation (form) without using submit button? [duplicate]
- Set the default value of an input field
- How best to make a link submit a form
- Copy/Paste from Excel to a web page
- How can I void a form action and execute jQuery when all HTML form elements are validated?
- HTML form input tag name element array with JavaScript
- jquery serialize and multi select dropdown