Switch to full style
JQuery Examples
Post a reply

Add double quotes to text dynamically, on page load

Tue Jan 22, 2013 10:05 pm

Add double quotes to text dynamically, on page load using javascript or JQuery

javascript code
<html>
<head>
<title>show and double quots Quotation box using JQuery </title>

<!--
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
Note you can download the JQuery package instead of using Google version. -->
<script src="jquery-1.8.3.js"></script>


<script>
$(document).ready(function(){
//


$("button#b1").click(function(){
// Track clicks on hash links using Google analytics.
$('blockquote').prepend(" <span class='bqstart'>&#8220;</span> ");
$('blockquote').append(" <span>&nbsp;</span><span class='bqend'>&#8221;</span> ");
});

});
</script>
</head>
<body>
<div>
User content data - some text some text
</div>
<hr>
<blockquote>Quoted "User content data - some text some text"</blockquote>
Second user content.
<br>
<button id="b1">Show Quotation</button>
</body>
</html>




Post a reply
  Related Posts  to : Add double quotes to text dynamically, on page load
 displaying double quotes in ASP     -  
 dynamically load a custom user control with a param construc     -  
 calculate the load time for a page     -  
 How to increase WordPress Blog speed-decrease Page load time     -  
 Function printing text on a Web Page     -  
 change the direction of text in your page     -  
 usage of <q> and <blockquote> to add quotes to your HTML     -  
 Image Scroller-scrollbar-LINE_UP,LINE_DOWN-PAGE-UP-PAGE-DOWN     -  
 load class to applet- load frame class to applet     -  
 Able to Copy Text from Uneditable Text Boxes(JTextfields)     -  

Topic Tags

JQuery Basics