How do I put the jquery tabs code into an external js file?
I'm still learning how to use external javascript files so I'm a bit stumped at the moment. I already have the external js file working OK with a couple of functions.
How do I put the jquery tabs code into an external js file?
I'll make it really simple, here is the demo tabs site:
I have copied and pasted this whole code into a HTML file and it works.
This is this bit of code I want to put into the external js file:
<script>
$(function() {
$( "#tabs" ).tabs();
});
</script>
I'm sure it's really simple but I just can't work out how to do it.
Cheers
Troy