Skip to content
Snippets Groups Projects
Commit 23651f92 authored by Matthew Juhl's avatar Matthew Juhl
Browse files

Setup for the college selector field.

parent eaf761f7
Branches
No related tags found
No related merge requests found
......@@ -416,6 +416,28 @@
}
$('form select[name=form_data_profile_role] option[value='+unlrole+']').attr('selected','selected');
/********* College selector */
var collegeName = $('form input[name=form_data_profile_college]').val();
$('form input[name=form_data_profile_college]').replaceWith('<select id="collegeSelector" name="form_data_profile_college" class="input-pulldown">'+
'<option value=""></option>' +
'<option value="Agricultural Sciences and Natural Resources">Agricultural Sciences and Natural Resources</option>'+
'<option value="Architecture">Architecture</option>'+
'<option value="Arts and Sciences">Arts and Sciences</option>'+
'<option value="Business Administration">Business Administration</option>'+
'<option value="Education and Human Sciences">Education and Human Sciences</option>'+
'<option value="Engineering">Engineering</option>'+
'<option value="Hixson-Lied College of Fine and Performing Arts">Hixson-Lied College of Fine and Performing Arts</option>'+
'<option value="Human Resources and Family Sciences">Human Resources and Family Sciences</option>'+
'<option value="Journalism and Mass Communications">Journalism and Mass Communications</option>'+
'<option value="Law">Law</option>'+
'<option value="Teachers College">Teachers College</option>'+
'</select>');
$("#collegeSelector option[value=" + collegeName + "]").attr("selected","selected");
/********* Hide and Change Labels */
$("label[for='form_data_profile_city']").html('Your Map Location <span class="helper">Please enter the location you want to use for yourself on the map.</span>');
$("label[for='form_data_profile_state']").remove();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment