Laravel Selected Option Javascript Substring Indexof