I'm adding elements to the DOM after page load, using Flydom jQuery plugin (http://flydom.socianet.com/). I need to add elements only when some conditions are satisfied.
To clarify, the following code is used to append a table to the exampleCA element. $('#exampleCA').createAppend( 'table', { width: '718px', style: 'border: 2px inset #336699;' }, [ 'tr', { className: 'exampleRow' }, [ 'td', { align: 'center', style: 'color: white;' }, 'I was created by createAppend()!' ] ] ); Now, I was to add another row to the table only when some condition is satisfied. Any suggestions?