i have a input and i want access value of input and change it with inline callback function . because of some reason i can not select input with id or class or anything else and i have to use the callback function my input :
<input type = 'text' name = 'input_name' onkeyup = 'my_func()' />
with this i can access the value and send it to my_func but i can not change it
<input type = 'text' name = 'input_name' onkeyup = 'my_func(this.value)' />
function my_func(value){
alert(value);
}
in above function when user type something i want change the value of input. how can i change that?