select - Jquery .prop("selected", "selected") doesnt work on ipad chrome/safari -


i have problem code :

$('#activity_filter_type_activity option').eq(1).prop("selected", true); 

it works on classic desktop not in safari/chrome on ipad. can me ?

try using ".attr" checked

$('#activity_filter_type_activity option').eq(1).attr('checked',true); 

i found solution in other thread, same problem .prop() vs .attr()


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -