If you'd like a cleaner jQuery way to do this, it would be:

$('#start_odo11').val( start_odo );

For more information, see:

http://docs.jquery.com/Attributes/val

You'll find this same pattern in a few places in jQuery. For example, the
.html() method works the same way:

var myhtml = $(...).html();  // get the html

$(...).html( myhtml );  // set the html

http://docs.jquery.com/Attributes/html

-Mike

> From: GrootBaas
> 
> OK, no worries. I used this ...
> 
> document.getElementById('start_odo11').value = start_odo;
> 
> Thanks anyway.
> 
> On Nov 13, 10:36 am, GrootBaas <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > This is a very junior question that I need help with please ...
> >
> > I use
> >
> > var start_odo = $("#end_odo"+counter).val()
> >
> > to get the value of a text input.
> >
> > What statement would I use to assign the value start_odo to a text 
> > input.
> >
> > Thanks guys ...
> 

Reply via email to