Get the displying content from the div using javascript or jquery
Dear all,
Thanks in advance, i need to get the display content from the div without overflow content using javascript or jquery.
Sample html code
=========
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#outer_div{ border:1px solid #999; height:300px; width:300px; margin:0 auto;}
.pagination {
display: block;
overflow:hidden;
position: relative;
line-height:35px;
height:280px;
padding:10px 0px 10px 5px;
border:1px solid #F00;
}
</style>
</head>
<body>
<div id="outer_div">
<div class="pagination" id="pagination_id">
<p>Jonathan Sharp has been passionate about the Internet and web development since
1996. Over the years that have followed, and for Fortune
500 corporations. Jonathan founded Out West Media, LLC, in greater Omaha, Nebraska,
and provides frontend engineering and architecture services with a focus on
custom XHTML, CSS, and jQuery development. Jonathan is a jQuery core team member
and an author and presenter when not coding. Jonathan is most grateful for his
wife, Erin; daughter, Noel; two dogs, and two horses.</br></br></br></br></br></br></br></br></br></br></p>
<p>Scott González is a web application developer living in Raleigh, North Carolina, who
enjoys building highly dynamic systems and flexible, scalable frameworks. He has been
contributing to jQuery since 2007 and is currently the development lead for jQuery UI,
jQueryâs official user interface library. Scott also writes tutorials about jQuery and
jQuery UI on nemikor.com and speaks about jQuery at conferences.<b>end para</b></p>
<span id="mymarker">mymarker</span>
</div>
</div>
</body>
</html>
From the above html code, when view into browser it show only following content.
"Jonathan Sharp has been passionate about the Internet and web development since 1996. Over the years that have followed, and for Fortune 500 corporations. Jonathan founded Out West Media, LLC, in greater Omaha, Nebraska, and provides frontend engineering and architecture services with a focus on custom XHTML, CSS, and jQuery "
i need to get that content using javascript or jquery. Please help me.
Thanks,
Thavaprakash. S.
|