あなたの助けが必要です。
基本的にSQL演算子を決定するテキストボックスに入力された文字列を単純にチェックするjavascript関数を考え出す必要があります
例:
var field1 = document.getElementById('field1').value
var field2 = document.getElementById('field2').value
var field3 = document.getElementById('field3').value
function validate(textbox) {
var operator
if ('%' is the first character placed before and after the value) { then operator = LIKE }
else if ('%' is the first character placed before the value) { then operator = LIKE }
else if ('%' is the last character placed after the value) { then operator = LIKE }
else { operator equals "=" } //default
alert(operator)
}
実際の機能の例:
validate(field1)