javascript - Dynamic functions for dynamic generated div's -


success: function (html) {     $("#concretisering").append('<li><input type="text"  /></li>'); } 

i have function this, works but... in function generate divs, have like:

  • concretisering
  • concretisering1
  • concretisering2
  • ...

my question is, how can manipulate bit of code $("#concretisering") every div has .append function?

instead of ids ...provide divs class of 'concretisering'. become:

 $(".concretisering:not(:has(li))").append('<li><input type="text"  /></li>'); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -