javascript - total of dynamic input -


Hello I have 3 types of input Dynamic I create with an add button

  // Function Appendix Merry Works CounterMardi = 0; Var $ newRow; Click on $ (Function () {$ ('# add_mardi') (function () {countermardi + = 1; $ $ NewRow = $ ('& lt; Input ID = "nummar' + countermardi + '" name = " Nummer [] '+' "type =" text "onblur =" autre (); "onfocus =" enter (); "/>;); $ ('# nummar'). Attachments ($ newRow) $ NewRow.keypress (function (e) {return handledynmar (event, this' work ');}) $ newRow.autocomplete (autocompOpt);. $ (' # Clientmar ') enclosed ((' & lt; input id = "clientmar '+ Countermardi +' "name =" customer [] '+' "type =" text "onblur =" autre (); "onfocus =" enter (); "/ & gt; ')) $ (' # prodescmar '). Append ((' & lt; input id = "prodescmar '+ countermardi +'" name = "prodescmar [] '+'" type = "text" onBlur = "sub Access to categories (); "onFocus =" login (); "/>) '$' ('#protector'). App ((''