getting prev() classname
getting prev() classname
Hi,
Im stuck with something. I have a "Table drag and drop" jquery tool on my page, and have several drag and drops on that page. What i need is that the result of that drag and drop is set to a value of an <input> field.
The name of the input fields needs to be variable.
This is the HTML:
-
<table cellspacing="0" cellpadding="0" id="variablename">
<tr id="ocr" class="variablename"><td width="594">1. OCR</td></tr>
<tr id="boeken" class="variablename"><td width="594">2. Boeken</td></tr>
<tr id="archiveren" class="variablename"><td width="594">3. Archiveren</td></tr>
</table>
<input type="text" name="variablename" class="variablename" value="">
And this is the used code:
-
$("div.container dl dd table").tableDnD({
"onDragClass" : "slepen",
onDrop: function(table, row) {
$(this).next('input').val($.tableDnD.serialize());
}
});
But this doesnt work. "$.tableDnD.serialize()" gives a good output (tested that) but how do i put this in an input field?
I use this:
http://www.isocra.com/2008/02/table-dra ... ry-plugin/
thanks!
p.s.
ive tried giving the tables, the tr's and the td's classnames, but cant get it working....