水荷 2016-03-29
发现好多人在找这个,之前的那个有点乱……看这个,直接引入Html即可
function input() {
function addListener(element, e, fn) {
if (element.addEventListener) {
element.addEventListener(e, fn, false);
}
else {
element.attachEvent("on" + e, fn);
}
}
var tipinput = document.getElementById("tipinput");
addListener(tipinput, "click", function () {
tipinput.value = "";
//$('.myname').css('display', 'none');
})
addListener(tipinput, "blur", function () {
tipinput.value ="您可以输入公司名称/职位名称/公司特色等关键词进行搜索";
})
}“tipinput"为input框的ID………………
<table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%&qu