.click doesnt work on touch devices although it works on browser!
I am using a .click function that works fine on browsers, but when i try it on touchscreen devices, it won't work (the function isn't even called). The function should be called when i choose an select option. Is it possible that the problem is that the touch on an select option is not treated as a click? Is there a way to use the touch as a click in this specific situation?
$brandImageOptions.find('.selecter-item').click(function(){
//The console.log won't work with a touch, but will work with a click
console.log("This event is happening LOL WUT Right? RIGHT?!");
//DO STUFF
});
I also tried:
$brandImageOptions.find('.selecter-item').on('click', function(){
//The console.log won't work with a touch, but will work with a click
console.log("This event is happening LOL WUT Right? RIGHT?!");
//DO STUFF
});
and:
$brandImageOptions.find('.selecter-item').on('click, touchstart', function(){
//The console.log won't work with a touch, but will work with a click
console.log("This event is happening LOL WUT Right? RIGHT?!");
//DO STUFF
});
Thank for helping :)
The html is: MARCA
<div class="form-controls select-small">
<select name="brands" id="brands" class="select">
<option value=""></option>
<option value="CHEVROLET">CHEVROLET</option>
<option value="GMC">GMC</option>
<option value="AC-DELCO">AC-DELCO</option>
</select>
</div><!-- /.form-controls -->
</div><!-- /.form-group -->