Dienstag, 19. Juni 2012

Howto use multiple line html string in append or something like that:

Howto use multiple line html string in append or something like that:

1. define variable:
var tablefooter = '<tfoot><tr>'
tablefooter += '<td><input name="tfoot input" value="Suche" /></td>'
tablefooter += '<td><input name="tfoot input" value="Suche" /></td>'
tablefooter += '<td><input name="tfoot input" value="Suche" /></td>'
tablefooter +=' </tr></tfoot>';


2. use variable
oTable.append(tablefooter);

Keine Kommentare:

Kommentar veröffentlichen