JSFiddle - React, Tailwind, and code Playground
by alachgar
HTML
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- This jquery.min.js is necessary for popup to Print Modal -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- This For Phone Mask -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.16/jquery.mask.min.js"></script>
<!-- This bootstrap.min.css is necessary for the CSS of the app in a whole -->
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<!-- This bootstrap.js Should always Remain at the end here so it is Last Loaded -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.13.1/jquery.validate.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.0/js/bootstrap.min.js"></script>
<div class="form-group">
<label class="control-label">Organization:</label>
<div class="input-group">
<span class="input-group-addon transparent"><span class="glyphicon glyphicon-home"></span></span>
<div class="col-xs-10">
<select type="select" id="organisation" name="organisation" class="form-control" required>
<option></option>
<option value="211">211</option>
<option value="Advocates for Mentally Ill Housing (Placer/Nevada)">Advocates for Mentally Ill Housing (Placer/Nevada)</option>
<option value="Amador Tuolumne Community Action">Amador Tuolumne Community Action</option>
<option value="Bayanihan Clinic">Bayanihan Clinic</option>
<option value="Butte County Adult Protective Services">Butte County Adult Protective Services</option>
<option value="Calaveras Mariposa Community Action Agency">Calaveras Mariposa Community Action Agency</option>
<option value="City Of Davis">City Of Davis</option>
<option value="Clinica Tepati">Clinica...
JavaScript
jQuery(function($)
{
var offices =
{
'211': ['[email protected]'],
'Amador Tuolumne Community Action': ['[email protected]'],
'Bayanihan Clinic': ['[email protected]'],
'Butte County Adult Protective Services': ['[email protected]'],
'City Of Davis': ['[email protected]'],
'Clinica Tepati': ['[email protected]'],
'Communicare': ['[email protected]'],
'Davis Community Meals and Housing': ['[email protected]'],
'Empower Yolo': ['[email protected]'],
'FRC - Tahoe Truckee': ['[email protected]'],
'Fourth and Hope': ['[email protected]'],
'HHSA (Health and Human Services Agency)': ['[email protected]'],
'Hill Country Community Clinic': ['[email protected]'],
'Imani Clinic': ['[email protected]'],
'JVMC Clinic - Harm Reduction Services': ['[email protected]'],
'NorCal United Way': ['[email protected]'],
'North American Mental Health Services': ['[email protected]'],
'One Safe Place': ['[email protected]'],
'PSA2': ['[email protected]'],
'Paul Hom Asian Clinic': ['[email protected]'],
'RISE': ['[email protected]'],
'Sacramento UC Davis Pediatrics': ['[email protected]'],
'Sacramento Vet Center': ['[email protected]'],
'Shasta Community Health Center': ['[email protected]'],
'Shasta County APS': ['[email protected]'],
'Shasta County HHSA': ['[email protected]'],
'Shifa Clinic': ['[email protected]'],
'TEACH, Inc.': ['[email protected]'],
'Tehama County Department of Social Services': ['[email protected]'],
'Turning Point': ['[email protected]'],
'Ukiah': ['[email protected]'],
'Vallejo': ['[email protected]'],
'Willow Clinic': ['[email protected]'],
'Yolo Community Care Continuum': ['[email protected]'],
'Yolo County Childrens Alliance': ['[email protected]'],
'Open Door Community Health Center': ['[email protected]'],
'FRC in SL Tahoe': ['[email protected]'],
'Advocates for Mentally Ill Housing (Placer/Nevada)': ['[email protected]'],
'Lighthouse - Lincoln FRC':...