I am a newbie to the jquery. I am trying to access a variable defined inside jquery block outside the jquery (from regular function) like this, but I can't access it. Could somebody tell me how?
<script language="javascript">
$(function()
{
.......
.......
.......
var api = pane.data('jsp');
var current_location = api.getContentPositionX();
}
function change_title(t_index) {
alert("print="+$.current_location);
window.location.href="page.php?p="+$.current_location);
}
I want to get a value for $.current_location.
Thanks.