jquery, selector for class within id

前端 未结 5 1379
谎友^
谎友^ 2020-12-23 14:20

Below, how should I select the elements that contain the class my_class within the element with id = \"my_id\"?

Note that the element may

5条回答
  •  情深已故
    2020-12-23 14:41

    Also $( "#container" ).find( "div.robotarm" );
    is equal to: $( "div.robotarm", "#container" )

提交回复
热议问题