Having a table with input fields as td. Example of input field:
`<input type="text" value="20.300,00" style="max-width: 95px;">`
Im trying to disable the ability to scroll in this element. This is my code:
`$(document).on("wheel", function(event) {
if ($(document.activeElement).is("input[type='text']")) {
$(document.activeElement).blur();
}
});`
With this code, it's still possible to scroll once, which changes the value once and afterwards its removing focus from the input field.
How can i completely remove the ability to scroll?
I've tried to use:
`event.preventDefault();`
That doesn't seem to be a option.