Как изменить глобальную переменную внутри функции jquery.Если я использую этот код ниже, он будет отображать «0», а не «15».
<script type>
theValue=0;
$(document).ready(function(){
theValue=15;
});
</script>
<script type="text/javascript">
document.write(theValue)
</script>