JSFiddle - React, Tailwind, and code Playground
by dhavaljani
JavaScript
var n1 = jQuery('#' + event.detail.unitTag).find('input[name="name1"]').val();
var n2 = jQuery('#' + event.detail.unitTag).find('input[name="name2"]').val();
inputs = event.detail.inputs;
inputs.forEach( function(el) {
if ( el.name == 'SelectRole' ) {
if ( el.value == '1 Truck & own authority' ) {
location.href = 'https://www.riteload.com/pilot-driver-owner-confirmation/';
} else if ( el.value == '2+ Trucks & own authority' ) {
location.href = 'https://www.riteload.com/pilot-driver-employee-confirmation/';
} else if ( el.value == 'Authority to Dispatch Carriers' ) {
location.href = 'https://www.riteload.com/pilot-driver-dispatch-confirmation/';
}
}
});