I am using javascript. I wanted to ask how can i pass variable link to the .load() function of javascript.
var current_link = location.href;
$('#alerts_div').load(current_link '#alerts_div');//to pass div content in page load
But this is not working? can anyone help please?
If you want to load a page fragment, you need to add an additional space:
Please read: http://api.jquery.com/load/