实现4个checkbox一换行

//实现4个标签一换行
var i = 0;
$("label").each(function()
{
i++;
if (i%4==0)
{
$(this).append("
");
}
});

你可能感兴趣的:(jquery)