difference between document.ready() inner function and a function in <script></script> tag

Posted by Richa Media and services on Stack Overflow See other posts from Stack Overflow or by Richa Media and services
Published on 2010-04-17T08:30:43Z Indexed on 2010/04/17 8:33 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

what is difference between this two function 1.

$(document).ready(function myfunc()
{
function do something();
});

2

<script language="javascript">
function dosomething(){
// do something
}
</script>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery