Create a gist now

Instantly share code, notes, and snippets.

JQuery Sample
# Is the semantic specifier on the id or name attribute of the div?
# If id then
$('#semantic').html('<p><%= @country.abstract.value %></p><p><%= @country.comment.value%></p><p>Currency: <%@country.currency.value%></p><p>Population: <%=@country.population.value%></p><p>Capital: <></p>');
# If name then
$('.semantic').html('<p><%= @country.abstract.value %></p><p><%= @country.comment.value%></p><p>Currency: <%@country.currency.value%></p><p>Population: <%=@country.population.value%></p><p>Capital: <></p>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment