[jQuery] Re: add a value to text field

2008-11-12 Thread Michael Geary
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 = $(...).htm

[jQuery] Re: add a value to text field

2008-11-12 Thread 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).va