Change text inside <script> tag?
I need to change some text inside a script tag when I click a button on my page. Is there a way to change "autoPlay: 200" to "autoPlay: 0" when I click an element id="button1"? The script I want to change is included below:
- <script type="text/javascript">
$(document).ready(function() {
$("#featureCarousel").featureCarousel({
topPadding: 10,
sidePadding: 5,
autoPlay: 200,
counterStyle: 1
});
});
</script>