Login
Welcome, {{name}}
Logout
Rankings & Advice
Education
Health
Money
Travel
Cars
Law Firms
News
U.S. News Home
education
Facebook
Twitter
Education Rankings & Advice
Home
Colleges
Grad Schools
High Schools
National Rankings
State Rankings
High School Notes Blog
(function ($) {
"use strict";
$(function () {
var $metaCurrentState = $('meta[name=current_state_abbreviation]'),
$headerSearch = $('#headerSearch-highSchools'),
$headerState = $('select[name=bhs-school-state]', $headerSearch),
$headerStates = $('option', $headerStates),
currentStateAbbreviation = '';
if ($metaCurrentState.length > 0) {
currentStateAbbreviation = $metaCurrentState.attr('content');
$headerStates.each(function () {
var $state = $(this),
text = $state.text(),
value = $state.val();
if (text === currentStateAbbreviation) {
$headerState.val(value);
}
});
}
});
}(jQuery));
in