U mnie wygląda to w ten sposób że gdy klikam w pole kod towaru prawidłowo pojawia się kolejny wiersz tabeli, natomiast gdy przechodzę w tym samym wierszu do pola ilość lub cena nie chcę aby funkcja dodawajka generowała kolejne wiersze z polami.
Proszę o wykasowanie tego tematu:
http://forum.php.pl/Jednorazowe_wywolanie_funkcji_z_zdarzenia_onClick_t230734.html

<tr> <td> <code>1</code> </td> <td><input id="form-custom" onClick="dodawajka()" type="text" class="input-sm form-control"></td> <td><input id="form-custom" type="text" class="input-sm form-control"></td> <td><input id="form-custom" type="text" class="input-sm form-control"></td> <td><input id="form-custom" type="text" class="input-sm form-control"></td> </tr>
function dodawajka(){ var content = $("#faktura-body"); var i = $("#faktura-body tr").size() +1; $("<tr onClick=\"dodawajka()\"><td><code>1</code></td><td ><input id=\"form-custom\" type=\"text\" class=\"input-sm form-control\"></td><td><input id=\"form-custom\" type=\"text\" class=\"input-sm form-control\"></td><td><input id=\"form-custom\" type=\"text\" class=\"input-sm form-control\"></td><td><input id=\"form-custom\" type=\"text\" class=\"input-sm form-control\"></td></tr>").appendTo(content); i++; return false;
}