Getting an empty JQuery object

前端 未结 4 562
北海茫月
北海茫月 2020-11-30 04:20

In the following code I set up a change handler on a select box to show and hide some follow up questions based on the value of the selection.

Further, for some valu

4条回答
  •  一个人的身影
    2020-11-30 04:53

    This creates an empty jQuery-object:

    $([])
    

    Update: In newer versions of jQuery (1.4+), you can use:

    $()
    

提交回复
热议问题