You should do it like this :
$(document).ready(function() {
var param1 = getQueryVariable("param1");
$("img#target").attr("src", "images/"+param1);
$("#block1").html(param1);
});
Put your param into a variable and then use it to change your SRC attribute and to put the content into your div.
I'm using jasmine-node to run tests for my node.js application. The problem is that if I run the tests one by one with specifying the spec file (jasmine-node spec/file.spec.js) - then everything looks ...
I'm using jasmine-node to run tests for my node.js application. The problem is that if I run the tests one by one with specifying the spec file (jasmine-node spec/file.spec.js) - then everything looks ...
I want to split a string based on the delimiters " " and "," (including quotation marks). How would I be able to do this? I tried doing this: var str = '"String","String2" "String3"'; str = str....
I want to split a string based on the delimiters " " and "," (including quotation marks). How would I be able to do this? I tried doing this: var str = '"String","String2" "String3"'; str = str....
I have 3 divs as colors to choose from and 3 blank divs. I want to let the user be able to: (1) click a colored div and then a blank div, then the blank div is colored as the color the user choose. ...
I have 3 divs as colors to choose from and 3 blank divs. I want to let the user be able to: (1) click a colored div and then a blank div, then the blank div is colored as the color the user choose. ...
I wrote the following code in JS var d = new Date(2019, 9, 14); var currentTime = d.getTime(); var daysToAdd = 3; var secondsInDay = 86400; var d = new Date(currentTime + daysToAdd*...
I wrote the following code in JS var d = new Date(2019, 9, 14); var currentTime = d.getTime(); var daysToAdd = 3; var secondsInDay = 86400; var d = new Date(currentTime + daysToAdd*...