//获取title的值
var title_val=$('#id').attr('title');
alert(title_val);

//修改title的值、赋值给title
$('#id2').attr('title','我是新的title值');