Thanks, this helped my to discover the correct syntax, choosing the
apostrophes right.

$('#Test, input[name="Prefix"]').val('Testing');

O. Wyss

On Oct 14, 10:40 pm, TimW66 <[EMAIL PROTECTED]> wrote:
> The input needs to have an ID, jQuery can't reference by the name
> attribute using the style you specified.  You might also try:
> $("#form input['name=Prefix']").val("Testing");
>
> Here's more on selecting by 
> attribute:http://docs.jquery.com/Selectors/attributeEquals#attributevalue
>
> And for more on selectors:http://docs.jquery.com/Selectors
>
> Also, you'll need to use the val() function instead of value.
>
> On Oct 14, 2:49 pm, wyo <[EMAIL PROTECTED]> wrote:
>
> > I've a form like
>
> > <form id="Test" ...>
> >   <fieldset>
> >     <table ...>
> >       <tbody>
> >       <tr>
> >         <td><input name="Prefix"></td>
>
> > Now I try to access it in the following way:
>
> >   $('#Test, Prefix').value = 'Testing";
>
> > I also tried
>
> >   $('#Test', 'Prefix').value = 'Testing";
>
> > with no success. Any idea what's wrong?
>
> > O. Wyss

Reply via email to