[javascript]代码库
//完整见 http://m.findlaw.cn/ask/ask.php
$('#changecity').click(function(){
var val = $('#qcontent').val() + '###' + $('#qmobile').val();
document.cookie = "askcontentmobile=" + escape(val);
});
(function(){
var arrStr = document.cookie.split("; ");
for(var i = 0;i < arrStr.length;i ++) {
var temp = arrStr[i].split("=");
if(temp[0] == 'askcontentmobile') {
var val = unescape(temp[1]);
var valarr = val.split('###');
$('#qcontent').val(valarr[0]);
$('#qmobile').val(valarr[1]);
}
}
})();