Closed kiredewit closed 6 years ago
How to prevent defaults on a select box created with uniform?
Normally I do: $(".update").click(function(e){ e.preventDefault(); console.log($("#is_vehicle_active").prop('checked')); }
In combination with uniform, this is not working on the normal way. First click its ignoring preventdefault. After the first click its working again.
s ignoring preventdefault. After the first click it
I don`t know the correct way to use preventdefault with uniform. Does someone know how to fix this?
answer: https://jsfiddle.net/Shehi/2m0Lza8L/
How to prevent defaults on a select box created with uniform?
Normally I do: $(".update").click(function(e){ e.preventDefault(); console.log($("#is_vehicle_active").prop('checked')); }
In combination with uniform, this is not working on the normal way. First click it
s ignoring preventdefault. After the first click it
s working again.I don`t know the correct way to use preventdefault with uniform. Does someone know how to fix this?