Skip to content

Author: admin@master

Get the id of input on keyup

I have an input box… When I type in the field, it will go to function lookup(). From there I want to get the id of this input. I tried… but this won’t work. Any suggestions on how I can get the id? Answer Because you are passing this.value to your lookup() function. It’s better to pass…

Dynamically disable select menu based on text field value

I’d like to be able to disable a select menu on my page when a user starts typing in a text field. This is because the text field is an alternative way to enter the data and disabling the dropdown menu will help make that clearer. I know I could use this: to disable the select permanently, but is there