JSFiddle - React, Tailwind, and code Playground
by sarah97302
HTML
<form id="signup" >
<div><label >Name</label>
<input id="custom-105958" name="custom-105958" type="text"></div>
<div><label >Birthday (mm/dd/yy)</label>
<input id="custom-105959" name="custom-105959" type="text"></div>
<div><label >Personal Identification Number (PIN)</label>
<input id="custom-105976" name="custom-105976" type="text"> </div>
<input type="submit" value="Submit" />
</form>
JavaScript
function Validate() {
if ( $( "#custom-105959", "#custom-105976").val() === "")
{
alert( "You must enter either your date of birth or your Personal Identification Number (PIN) ." );
$( "#custom-105959").focus();
event.preventDefault(); }
}
$('#signup').submit(Validate);