I'm trying to switch src attribute when changing the selector item. It works in different web browsers but when switching to my phone, it won't work. I tried with both latest version of Safari and Chrome on iOS 16.1.2 and I'm using jQuery 3.6.3
The code is so simple:
$('#selector').change(function() {
model.setAttribute('src', path + $(this).val().trim()+'.glb');
});
Option 1 selected (the item should be bigger)
Option 2 selected (item should be smaller)
Also, when debugging, I got no errors and nothing out of normal.
------
Update: It seemed to be a jQuery problem, I recreated the code with vanilla JS and it worked as expected, so I left it like that.