<div>
<h1>Example text</h1>
<p >First text goes here.</p><a href="#" onclick="show('example1')"> read more </a>
<p id="example1" style="display:none; font-weight: bold">Second text goes here</p></div>
<script>
function show(ele){
document.getElementById(ele).style.display = 'block';
}
</script>
<div>
<h1>Example text</h1>
<p >First text goes here.</p><a href="#" id="readmore"> read more </a>
<p id="example1" style="display:none; font-weight: bold">Second text goes here</p></div>
</div>
<script>$(function() {
$("#readmore").click(function(e) {
e.preventDefault();
$("#example1").toggle();
});
});
</script>
add_to_jquery('$("#readmore").click(function(e) {
e.preventDefault();
$("#example1").toggle();
});');
<div>
<h1>Example text</h1>
<p >First text goes here.</p><a href="#" id="readmore"> read more </a>
<p id="example1" style="display:none; font-weight: bold">Second text goes here</p></div>
</div>
<script>$(function() {
$("#readmore").click(function(e) {
e.preventDefault();
$("#example1").toggle();
});
});
</script>
add_to_jquery("$("#readmore").bind('click', function(e) {
e.preventDefault();
$("#example1").toggle();
});");
Category Forum
Modifications and Requests - 9Labels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions