Created
August 24, 2011 09:36
-
-
Save NeMO84/1167682 to your computer and use it in GitHub Desktop.
JQuery Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: <%[email protected]%></p><p>Capital: <%[email protected]%></p>'); | |
# If name then | |
$('.semantic').html('<p><%= @country.abstract.value %></p><p><%= @country.comment.value%></p><p>Currency: <%@country.currency.value%></p><p>Population: <%[email protected]%></p><p>Capital: <%[email protected]%></p>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment