使input的title随value变化

25 阅读1分钟
var input = $('input#id')
$(input).mouseover(function () {
    this.title = this.value;
})