From 370c71718e19c82b49c561c7ef24f920c32a076e Mon Sep 17 00:00:00 2001 From: Brett Bieber <brett.bieber@gmail.com> Date: Thu, 6 Oct 2011 15:11:29 +0000 Subject: [PATCH] Properly quote attribute value in selector --- plugins/unl_theme/scripts/JS/enhanceProfileForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/unl_theme/scripts/JS/enhanceProfileForm.php b/plugins/unl_theme/scripts/JS/enhanceProfileForm.php index bd5236ea..b252d5f3 100644 --- a/plugins/unl_theme/scripts/JS/enhanceProfileForm.php +++ b/plugins/unl_theme/scripts/JS/enhanceProfileForm.php @@ -414,7 +414,7 @@ $("form select[name=form_data_profile_role] option[value='Friend of the University']").attr('selected','selected'); break; } - $('form select[name=form_data_profile_role] option[value='+unlrole+']').attr('selected','selected'); + $('form select[name=form_data_profile_role] option[value="'+unlrole+'"]').attr('selected','selected'); /********* College selector */ -- GitLab