SyntaxFix
Write A Post
Hire A Developer
Questions
$("#selectsearch").change(function() { var action = $(this).val() == "people" ? "user" : "content"; $("#search-form").attr("action", "/search/" + action); });