I'm trying to concatenate a string in a div with jQuery. Here is my code:
var server = 'server name: '
$('#div').load('myservername.aspx');
I'd like to display:
server name: myserver
How can I best achieve this?
Tweaking what you have
$('#div').load('myservername.aspx');
$('#div').prepend('Server Name:')
Could also do
$.get("myservername.aspx", function(data){
$('#div').html('Server name: ' + data)
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With