jQuery .each() with input elements

前端 未结 4 1431
攒了一身酷
攒了一身酷 2020-12-15 16:16
//save tablet
jQuery(\"#savetablet\"+jTablets[i].idtablets).on(\'click\', function()
{
    alert(\"alertsepy2...\");
    console.log(jTablets[i].idtablets);
    jQue         


        
4条回答
  •  庸人自扰
    2020-12-15 17:03

    $.each($('input[type=number]'),function(){
      alert($(this).val());
    });
    

    This will alert the value of input type number fields

    Demo is present at http://jsfiddle.net/2dJAN/33/

提交回复
热议问题