Jquery Select Add Option Javascript Substring Methods In Java