How to Create Hyperlink using jQuery

We can give hyper link url using JQuery. In this example i have shown how to create an hyper link using JQuery.


<html>
<head>
    <title></title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script>
        jQuery('a').text('http://aspnettutorialonline.blogspot.in/').attr('href', http://aspnettutorialonline.blogspot.in/');
    </script>
</head>
<body>
    <a href=""></a>
</body>
</html>
For more interview Questions Please see JQuery Interview Questions.
Share this post :

Post a Comment

Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.

 
Support : Ranga Rajesh Kumar
Copyright © 2012. ASP.NET Examples - All Rights Reserved
Site Designed by Ranga Rajesh Kumar