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
Post a Comment