JSFiddle - React, Tailwind, and code Playground

by jimkennelly

HTML

this is a test page

<h2>
This is large text
</h2>
<form action="selectFlight" method="post">

Enter your flight<select name="departFlights" id="departFlights">
<option value=0>Please select</option>
<option value=1>Chicago</option>
<option value=2>New York</option>

</select><br><br>

Text with 3 characters min (required> <input type="text" minlength="3" required><br><br>

Date Field<input type="date" value="11/15/2022" ><br><br>


Email <input type="email"><br><br>


Numbers only <input type="number" value="100"><br>


<input type="submit" value="submit form by clicking here"><br>

</form>

JavaScript

$("#departFlights").change(function () {
        var city = this.value;
        alert(city);
        
});