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));
(function($) {
$(document).ready(function() {
function autocomplete_school_name_widget() {
var state = $("#bhs-header-state option:selected").val(),
url = 'http://' + window.location.hostname + '/education/best-high-schools/' + state + '/name-autocomplete?timestamp=0&limit=10',
redirect_url = 'http://' + window.location.hostname + '/education/best-high-schools/search-bounce';
if ($.fn.usnAutocomplete) {
$('#bhs-header-school').usnAutocomplete({
responseFormat: 'newlineList',
autocompleteOptions: {
serviceUrl: url,
paramName: 'q',
onSelect: function() {
window.location.href = r