Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Nov 14th, 2012  |  syntax: None  |  size: 0.46 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $('#id_eleme').append('<div id="form_data"><%=form_tag(articles_path) do%>
  2.                          <div id="' + article.name+ '" style="width:330px;">
  3.                            ...some static text
  4.                          </div>
  5.                        <%end%></div>');
  6.        
  7. :javascript
  8.    $('#id_eleme').append("<div id='form_data'>#{form_tag(articles_path) }
  9.     <div id='#{article.name}' style='width:330px;'>
  10.       ...some static text
  11.     </div>
  12.   </div>");