move input field into table cell

Mehr
1 Jahr 4 Monate her #177483 von BaranD
Hello,

I am trying to move multipe short text in different cells in a table. Whenever I execute the code I see the question disappearing. In the bottom part of the code you can see the javascript code to try to move one short text field

Does anybody know what I should change in my code?


<table border="1" cellpadding="1" cellspacing="1" height="132" width="320">
<tbody>
<tr>
<td>Evv</td>
<td style="text-align: center;">T</td>
<td id="td1"> </td>
<td style="text-align: center;">-</td>
<td id="td2"> </td>
<td id="td3"> </td>
<td> V</td>
</tr>
<tr>
<td>Evr</td>
<td style="text-align: center;">T</td>
<td id="td3"> </td>
<td style="text-align: center;">-</td>
<td id="td4"> </td>
<td id="td5"> </td>
<td> V</td>
</tr>
<tr>
<td>El</td>
<td style="text-align: center;">T</td>
<td id="td6"> </td>
<td style="text-align: center;">-</td>
<td id="td7"> </td>
<td id="td8"> </td>
<td> V</td>
</tr>
<tr>
<td>Cvv</td>
<td style="text-align: center;">C</td>
<td id="td9"> </td>
<td style="text-align: center;">-</td>
<td id="td10"> </td>
<td id="td11"> </td>
<td> μ F</td>
</tr>
<tr>
<td>Cr</td>
<td style="text-align: center;">C</td>
<td id="td12"> </td>
<td style="text-align: center;">-</td>
<td id="td13"> </td>
<td id="td14"> </td>
<td> μ F</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
$(document).ready(function() {


//define which question elements to use for certain grid cells

var $item7b = $('#answer{SID}X{GID}X{QID}JSSQ001');



//move elements to proper cells
$('#question537 .td1').append($item7b);





});

</script>

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

LimeSurvey Partners
Mehr
1 Jahr 4 Monate her #177485 von DenisChenu
Send a lss with the question and javascript … we are not superman (maybe some but not me) and can‘t fix such code only seeing it …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
1 Jahr 4 Monate her #177487 von BaranD
Haha! I will do that in the future. I was able to fix it myself.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha