Concatenation in JavaScript -


my code this

var call_from='fb_test' jquery('.test').html("<img src=\"https://wwww.socialappshq.com/images/socialapps/loading.gif\" height=\"15\" width=\"15\" id=\"loading_image_\" + call_from + \">"); 

but it, not correctly concatenate please me

when write html using javascript, prefer ' enclose strings , " enclose attribute values

var call_from='fb_test' jquery('.test').html('<img src="https://wwww.socialappshq.com/images/socialapps/loading.gif" height="15" width="15" id="loading_image_' + call_from + '">'); 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -