I wonder if I can set text or initial text in <strong>
in javascript.
<!DOCTYPE html>
<html>
<body>
<script>
$(document).ready(function(){
// what should I do here?
}
</script>
<strong>Strong text</strong>
</body>
</html>
Thank you so much.
Better to add a class or id to the html element as below :
JS :
$(document).ready(function(){
$(".text").html("Your content here...");
});
HTML :
<strong class="text">Strong text</strong>
Demo : http://jsbin.com/cihilobe/1/
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