jquery expander plugin not working
the jquery plugin is not working on all the tags as its supposed to be.
here is the code
- <script type="text/javascript">
$(document).ready(function() {
// simple example, using all default options
$('.expand_hide').expander();
// *** OR ***
//override some default options
$('div p').expander({
slicePoint: 5, // default is 100
expandText: '[...]', // default is 'read more...'
collapseTimer: 5000, // re-collapses after 5 seconds; default is 0, so no re-collapsing
userCollapseText: '[^]' // default is '[collapse expanded text]'
});
});
</script>
here is the html code
- <div id="err_msg">
<p>
asdasdasdasdasdasdaaaa<br/>
</p>
- </div>
- <div id="footer">
- <p>Designed by:blah blah
- <br />Copyright 2011 Team7</p>
- </div>
Now the expander function is working for the footer only and is not working for the snippet with id err_msg.
Please help