foreach object/array in jQuery

后端 未结 5 1994
滥情空心
滥情空心 2021-02-08 15:02

I have a problem, i have X in my code, now I want to foreach this object/array its out put. - look my code.

$(\"#d         


        
5条回答
  •  情深已故
    2021-02-08 15:50

    how about something like this:

     jQuery.each(checked, function() {
          $(checked + this).text("My id is " + this + ".");
    
        });
    

提交回复
热议问题