title: dynamically append element to div and set css style
body: <pre><code>Id='a';      
  linkId   = '#dialog_link' + Id;
  
  htmlCode = '&lt;p&gt;&lt;a href="#" id="' + linkId + '" class="ui-state-default ui-corner-all"&gt;&lt;span&gt;&lt;/span&gt;Open Window&lt;/a&gt;&lt;/p&gt;';        
  $('#WindowsContainer').append(htmlCode);
  
  $(linkId).css('padding: .4em 1em .4em 20px;text-decoration: none;position: relative;');
  $(linkId + ' span.ui-icon').css('margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;');
  </code></pre>
  
  <p>Last two lines didn't affect style of a with id# "dialog_linka".</p>