Welcome Guest, Not a member yet? Register   Sign In
JS problem
#1

[eluser]Mitja[/eluser]
Code:
<tr>
<td class="arrangementPluspayments">
<table class="arrangementPluspayment">
<tr><td>Fotka: &lt;?php if (isset($error_pluspayment)) echo $error_pluspayment;?&gt;&lt;input type="file" id="file" name="pluspayment_title_photo" /&gt;&lt;/tr>
<tr><td>Opis: <br />&lt;textarea name="pluspayment_description"&gt;&lt;/textarea></tr>
</table>
</td>
</tr>
<tr><td><a href="[removed]addArrangementPluspayment()">[+] dodaj novo</a></td></tr>

JS code

Code:
var number = 1;
function addArrangementPluspayment() {
var pluspayment = $(".arrangementPluspayment:first").clone(true);
$(pluspayment).children().children("input").val("");
$(pluspayment).children().children("input").name = 'pluspayment_title_photo' + number;
$(".arrangementPluspayments").append(pluspayment);

number++;

}


Messages In This Thread
JS problem - by El Forum - 07-18-2008, 07:38 AM
JS problem - by El Forum - 07-18-2008, 09:26 AM
JS problem - by El Forum - 07-18-2008, 10:08 AM
JS problem - by El Forum - 07-20-2008, 01:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB