問題:
For example, the following selects a division with id="2": 例如,以下選擇id =“2”的除法:
row = $("body").find("#2");
How do I do something like this: 我該怎麼做這樣的事情:
row_id = 5;
row = $("body").find(row_id);
The above syntax produces an error. 上述語法會產生錯誤。 I checked the jQuery documentation and answers here without success. 我檢查了jQuery文檔和答案,但沒有成功。