You could try:
<script type="text/javascript">
$(document).ready(function() {
$('#Test').find('input[name="Prefix"]').css('background-
color','yellow');
});
</script>
but you should consider getting rid of the table as you can style a
form's layout using css for tags like form, fieldset, label, input...
On 14 Okt., 22:40, 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