Team:IIT Madras/testpage
From 2011.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$.noConflict(); | $.noConflict(); | ||
- | function test() { | + | ( function test( $ ) { |
alert(); | alert(); | ||
- | } | + | // Simple scope wrap, where $ is available as alias for jQuery. |
+ | // Code here will be executed immediately | ||
+ | } )( jQuery ); | ||
</script> | </script> | ||
<style> | <style> |
Revision as of 21:43, 2 September 2011