.

Changing text using JQuery

The “Hello” wont be displayed … rather the “Ahoy”.

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <script src="http://code.jquery.com/jquery-latest.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $('p').html('Ahoy');
        });
    </script>

</head>
<body>
    <p>Hello</p>
</body>
</html>

What's your thoughts on this?

*

Protected by WP Anti Spam