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

<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>
<tr><td><a href="[removed]addArrangementPluspayment()">[+] dodaj novo</a></td></tr>

JS code

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



Yeah, you're gonna HAVE to be a little bit more descriptive before we can even consider giving you an answer...

What are we supposed to do with this???

$(pluspayment).children().children("input").name = 'pluspayment_title_photo' + number;

this part not working. Name is not changed. I need to change default name="pluspayment_title_photo" to name="pluspayment_title_photo1"

hope understand me

Is this jquery?

If it is your function is incorrectly formated.

Try posting in the Jquery forums.

Theme © iAndrew 2016 - Forum software by © MyBB