What does the second argument to $() mean?
问题 I have a jQuery code as follows; var favorites = $("#favorites"); var favoritesFooter = $("#favoritesFooter",favorites); I am not sure what does the comma mean in the 2nd statement $("#favoritesFooter",favorites); Also what would the following statement do or represent in the above case; favoritesFooter.prev().after(newHTML); 回答1: The second statement means "search for element with ID of favoritesFooter inside the jQuery object favorites ". As you're dealing with ID which should be unique, it