Reputation: 129
I want to change the content of the below html div. Im using JQuery PhoneGap. I cant get it too work, any help would be great.
<div id="output"> This should change </div>
<script>
$('#output').text('Changed with jQuery');
</script>
Upvotes: 0
Views: 322
Reputation: 276
you should write like
$("#output").html('The content you like');
Upvotes: 1
Reputation: 7517
You could do this even without jQuery:
document.getElementById("output").innerHTML = "CHANGED!";
Upvotes: 4
Reputation: 10668
PhoneGap frequently used with jQuery, but they aren't the same thing. Make sure you have jQuery imported.
Upvotes: 1