Please can someone help on how to get the value from jQuery into Javascript?
var myTitle = "abctitle";
function showtitle(myVar) {
myTitle = myVar;
alert(myTitle);
}
$(document).ready(function() {
alert(myTitle); //I would like to alert "abctitle"
myTitle = "changed";
});
how can i get the value set in query outside its call in jscript?
Your code is right, and does what its supposed to
this will alert myTitle then the new title, showing that 'jquery' can access javascript variables and change them.