In Ruby you can use string interpolation like so:
text = "This is visit number #{numVisits} to this website"
This bypasses the need for explicit concatenation.
I'm working with jQuery and have a bit like this:
$(document).ready(function(){
$("a.ajax").click(function(event){
$("#content").load("data.html this.getClass");
});
});
The behavior I want is "click on <a class="ajax" id="schedule"></a> and the content div on the current page is replaced by the schedule div from data.html. If I manually write in
load("data.html #test");
that works, but I want the script to load the DIV with the ID value of the anchor clicked. Any help would be swell!
Example Page: http://www.mariahandalex.info/stack/
loadmethod?