make a variable the output of a select mysql code example
Example 1: jquery change the label of a value in select
$("#FIELDID").find("option:contains(\"OptionLabel\")").text('NewLabel');
Example 2: how to change input value in javascript using class
// Find the input element with a class of "bar" that is a direct child of a form with a name attribute of "foo"
document.querySelector("form[name='foo'] > input.bar").value = "hehe works"