Javascript undefined variable
Posted
by djairo
on Stack Overflow
See other posts from Stack Overflow
or by djairo
Published on 2009-05-26T13:22:11Z
Indexed on
2010/04/13
9:53 UTC
Read the original article
Hit count: 366
I have a problem with a javascript error: $("#slider") is undefined
How can i solve this problem?
<script type="text/javascript">
$(document).ready(function() {
$("#slider").easySlider({
controlsBefore: '<p id="controls">',
controlsAfter: '</p>',
prevId: 'prevBtn',
nextId: 'nextBtn'
});
});
</script>
This is my html
<div id='slider'>
<table>
<tr>
<td width='325'>hello</td>
<td width='325'>hello</td>
</table>
</div>
© Stack Overflow or respective owner