jQuery filtering select options does not work in Safari (but works in Chrome and FF)

后端 未结 2 1626
南方客
南方客 2021-01-25 19:08

I have a form with some dropdowns, and the first selected dropdown will serve to filter the second dropdown\'s choices (to limit them). The following code works just fine in FF

2条回答
  •  滥情空心
    2021-01-25 19:41

    If you are going to use .filter, you should be return a boolean indicating whether or not to include the current item instead of using .show() and .hide() documentation

    Otherwise, use .each or .map

提交回复
热议问题