Total members 11895 |It is currently Sat Dec 21, 2024 5:24 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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>




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  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     -  
 change the direction of text in your page     -  
 Function printing text on a Web 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
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com