If i'm not mistaken, you're going over cells of a table, hence <td>s,
right?
So $(this) would be a reference to a <td>. so what you need to do is
find the input inside of that! You need to use val() on an input, not
its container ;)
$(this).find('input').val()
Best regards,
Balázs Suhajda
On 18 jan 2010, at 20.36, Dr Funkenstein <asa...@shaw.ca> wrote:
Thanks. What I have is a for-loop that iterates over each cell on a
certain row and in cell x there's my input box. That's where I'm stuck
and as I mentioned using .val doesn't work. Here's what I have:
theRow.each(function(n) { // theRow is the currently selected row in
the table
if (n == parentRow.size() - 1) { // last column
has the input box
var newVal = "my new val";
$(this).val(newVal);
}
});
On Jan 18, 9:56 am, George Karabotsos <kara...@gmail.com> wrote:
I am not sure of the details of your input box but mine defined as:
<input id="paramPrefix" disabled=true type="text"
name="paramPrefix" />
I use this to update its value:
jQuery('#paramPrefix').val(paramPrefix);
George
On Mon, Jan 18, 2010 at 9:51 AM, Dr Funkenstein <asa...@shaw.ca>
wrote:
Hi,
Anybody knows how I can fill in an input box with some value? I've
tried the .val(txt) and .text(txt) notations but none worked.
Tnx!
--
You received this message because you are subscribed to the Google
Groups "jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com
.
For more options, visit this group athttp://groups.google.com/
group/jquery-ui?hl=en.
--
You received this message because you are subscribed to the Google
Groups "jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com
.
For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en
.
--
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en.