The Depending on browser support, a date picker can show up in the input field. |
Example:
HTML
<form>
<label for="week">Select a week:</label>
<input type="week" id="week" name="week">
</form>
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>Display a Week Input Control</h1>
<p>The <strong>input type="week"</strong> allows the user to select a week and year.</p>
<p>If the browser supports it, a date picker pops up when entering the input field.</p>
<form action="/action_page.php">
<label for="week">Select a week:</label>
<input type="week" id="week" name="week">
<input type="submit" value="Submit">
</form>
<p><strong>Note:</strong> type="week" is not supported in Firefox, Safari or Internet Explorer 11.</p>
</body>
</html>
Reffered: https://www.w3schools.com/html/html_form_input_types.asp
How is to look HTML Input Type Week | HTML Input Types |
HTML Input Type Week | HTML Input Types |
Read Full: | HTML Input Types |
Category: | Web Tutorial |
Sub Category: | HTML Input Types |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 44 |