Answers for "html input html"

3

html input

<form>
  <label for="fname">First name:</label>
  
  <input type="text" id="fname" name="fname"><br><br>
  <input 
  type="hidden" id="custId" name="custId" value="3487">
  <input 
  type="submit" value="Submit">
</form>
Posted by: Guest on October-01-2021
1

html input

<form>
  <label for="datemax">Enter a date before 
  1980-01-01:</label>
  <input type="date" id="datemax" name="datemax" 
  max="1979-12-31"><br><br>
  <label for="datemin">Enter a date after 
  2000-01-01:</label>
  <input type="date" id="datemin" name="datemin" 
  min="2000-01-02">
</form>
Posted by: Guest on October-01-2021
1

how to get the input of a textbox in html

//HTML Textbox w/Getting Javascript Input:
<script>
  function getTextBox(){
    var k = document.getElemntById('myTextBox').value
    alert(k)
  }
</script>
<input type="text" id="myTextBox">
<button onclick="getTextBox()">Get Text Input</button>
Posted by: Guest on September-14-2020

Browse Popular Code Answers by Language