Hai all
i have a problem, i have X <input type="checkbox" />
ind my code, now i what to foreach this object/array its out put. - look my code.
$("#denied_seekrs").click(function()
{
if (!isCheckedById("selectname"))
{
alert ("Please select at least one event");
return false;
}
else
{
alert( $("input[@id=selectname]:checked").val() ); //submit the form
}
});
function isCheckedById(id)
{
var checked = $("input[@id="+id+"]:checked").length;
if (checked == 0)
{
return false;
}
else
{
return true;
}
}
when i output it in alert i get a object, but if i have selecet 2 checkbox i what the value in this 2 checkboxes.
i hob i can be helpet and all here udnerstand me :)