Hi Brian,

your approach worked like a charm.

thanks and best regards,

Gordon

On 28 Aug., 18:17, Brian Schilt <[EMAIL PROTECTED]> wrote:
> Would you be able to store the Reference Number in the value attribute
> of the checkbox? That would make things a lot easier.
> <input type='checkbox' name='refNumber' value='ReferenceNumber'/>
>
> Then you could do something like this?
> $(tableID)
>   .find(':input:checkbox:checked')
>   .each(function(){
>     alert('ref number: ' + $(this).val());
>   });
>
> Brian
>
> On Aug 28, 8:49 am, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Hi folks,
>
> > I have a problem, with the following scenario. Given is aTablelike
> > the following
>
> > <table>
> >  <thead>...</thead>
> >  <tbody>
> >  <tr>
> >   <td><input type="checkbox"></td><td>ReferenceNumber</td> <...more
> > tds>
> >  </tr>
> >  </tbody>
> > </table>
>
> > A Submit Button is calling a function that should check thetablefor
> > checked checkboxes and call
> > a webservice with each reference number.
>
> > The following JQuery Snippet finds all checked checkboxes, but
> > afterwards I am stucked.
>
> >     $(TableID)
> >         .find('td')
> >         .find('input:checkbox:checked').each(
> >         function(intIndex)
> >         {
> >             alert(intIndex);
> >         }
> >     );
>
> > I also tried the following, but without luck.
>
> > $(tableID)
> > .find("td")
> > .filter("input:checkbox:checked)
> > .each(
> > function(intIndex)
> >   {
> >     alert( $(this).next().text() );
> >   }
> > );
>
> > Does anyone has a hint on how to solving that problem?
>
> > best regards,
>
> > Gordon

Reply via email to