I've created an input and a button. When you press the button, if you put one of 3 states in it makes certain panels appear and disappear. This part works fine. The only problem is that it only accepts the input if you do a lowercase nj.
How can I change my code to accept both lowercase, upper case, and the word New Jersey spelled out in full?
var stateSearch, searchButton, nj, pa
nj = "nj";
stateSearch = $("#stateSearch").val();
if (stateSearch === nj) {
$(".nj").fadeIn(2000);
$(".pa").fadeOut(500);
$(".ny").fadeOut(500);
return;