There are two input fields in my form.
<input type="text" @keypress="onKeypress(e, 'min')">
<input type="text" @keypress="onKeypress(e, 'max')">
Within my component :
methods: {
onKeypress(e, type) {
// Access the keypress event and determine if it is for min or max
}
}
How can I extract the value from the keyPress event and use the parameter consistently?