On Aug 18, 4:28 pm, Potluri <[EMAIL PROTECTED]> wrote:
> Is there a way to check like $("#id1,#id2,#id3").attr("checked"); should
> return true if all of them is checked.
I believe another possible idiom would be:
fResult = #('[EMAIL PROTECTED]@[EMAIL PROTECTED]:checked').length == 3;
> and also is there a way to return true if atleast one of them is checked
> like $("#id1||#id2||#id3").attr("checked"); should return true if atleast
> one id is checked.
fResult = #('[EMAIL PROTECTED]@[EMAIL PROTECTED]:checked').length != 0;
Also, if you want to make this more generic, try this selector:
fResult = #('[EMAIL PROTECTED]:checked').length != 0;
That will return all the id's that begin with "id"
--
HLS