[jQuery] Re: jQuery & Tables

2007-08-01 Thread Allan Mullan
yeah unfortunately that won't work - the input fields need to be different widths to fit into the table cells... ah well, might just have to add them manually - bugger :-S Allan - Original Message Follows - > > Hey Allan, > > That's strange because it should compute the width and > re

[jQuery] Re: jQuery & Tables

2007-08-01 Thread patcoll
Hey Allan, That's strange because it should compute the width and return it. I'd just make it a fixed width, like 60 pixels or so. Pat On Aug 1, 2:31 pm, Allan Mullan <[EMAIL PROTECTED]> wrote: > Hmmm actually I think this may be something to do with the width not > being defined on the table

[jQuery] Re: jQuery & Tables

2007-08-01 Thread Allan Mullan
Hmmm actually I think this may be something to do with the width not being defined on the table cells - I set it on the first row but then the rest I have left the table cells to inherit. Allan Mullan wrote: Hey Pat, Thanks for that, unfortunately howeveer I get a "e.style.has no propert

[jQuery] Re: jQuery & Tables

2007-08-01 Thread Allan Mullan
Hey Pat, Thanks for that, unfortunately howeveer I get a "e.style.has no properties"... I tried changing it to: $("td.fillme").each(function() { $(this).html('value="'+$(this).text()+'" style="width:'+$(this).width()+'px;">'); }); which works but with completely une

[jQuery] Re: jQuery & Tables

2007-08-01 Thread patcoll
It'd probably be something like this: $("td.fillme").html(''); This isn't tested but this is the first thing that came to mind. Just remember to style the input with class "fillmeInput" with the font size, height of the text input, a green background, etc. Even better, but this into a function.