<div class="float-left">
<div class="searchBar">
<form action="/TaskScope" method="post">
<input id="txtSearch" name="txtSearch" type="text" value="" title="Search by Item Name or Team Name." />
<input id="btnSearch" name="btnSearch" type="submit" value="" />
</form>
</div>
</div>
<script type="text/javascript">
$(function () {
var $txtSearch = $("#txtSearch");
if ($.trim($txtSearch.val()).length == 0) {
$txtSearch.val($txtSearch.attr("title"));
$txtSearch.addClass("toottip");
}
$txtSearch
.focus(function () {
if (this.value == this.title) {
this.value = this.className = "";
}
})
.blur(function () {
if ($.trim(this.value).length == 0) {
this.value = this.title;
this.className = "toottip";
}
});
$("#btnSearch").click(function () {
var txtSearch = document.getElementById("txtSearch");
if ($.trim(txtSearch.value) == txtSearch.title) {
txtSearch.value = "";
}
return true;
});
})
</script>