this resides inside the body tag in an HTML file and provides parameters to the jquery accordion function:
<script type="text/javascript">
$(function() {
$("#accordion").tabs("#accordion div.pane", {tabs: 'h2', effect: 'slide', initialIndex: null});
});
</script>
I want to save this as an external JavaScript file and call the function to do the same thing.
I am a newbie, please help!
replace it with:
<script src=”script.js”></script>
and create a new file called script.js with the code that used to be in the script tags: