Here is my complete code which doesn't show the label when I run it.
<!DOCTYPE html>
<html>
<head>
<title>Search Box Example 2 - default placeholder text gets cleared on click</title>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
<!-- Add jQuery to your website if you don't have it already -->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<!-- JAVASCRIPT to clear search text when the field is clicked -->
<script type="text/javascript">
$(function() {
$("#tfq1b").click(function() {
if ($("#tfq1b").val() == "Search our website"){
$("#tfq1b").val("");
}
});
$("#tfq2b").click(function() {
if ($("#tfq2b").val() == "city"){
$("#tfq2b").val("");
}
});
});
</script>
<!-- CSS styles for standard search box with placeholder text-->
<style type="text/css">
#tfheader{
background-color:#c3dfef;
position: relative;
top:135px;
}
#tfnewsearch{
float:right;
padding:100px;
}
.tftext{
margin: 0;
padding: 10px 65px;
position: relative;
font-family: Arial, Helvetica, sans-serif;
font-size:14px;
color:#666;
border:1px solid #0076a3;
<!--border-right:0px;-->
}
.tftext.tftextinput1{
top: 35%;
left:15%;
border-top-right-radius: 5px 5px;
border-bottom-right-radius: 5px 5px;
}
.tftext.tftextinput2{
down: 10%;
right: 73%;
border-top-left-radius: 5px 5px;
border-bottom-left-radius: 5px 5px;
}
.tfbutton2 {
margin: 0;
padding: 7px 30px;
position: relative;
top: 35%;
right: 27%;
font-family: Arial, Helvetica, sans-serif;
font-size:14px;
font-weight:bold;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
color: #ffffff;
border: solid 1px #0076a3; border-right:0px;
background: #0095cd;
background: -webkit-gradient(linear, left top, left bottom, from(#00adee),
to(#0078a5));
background: -moz-linear-gradient(top, #00adee, #0078a5);
border-top-right-radius: 5px 5px;
border-bottom-right-radius: 5px 5px;
}
.tfbutton2:hover {
text-decoration: none;
background: #007ead;
background: -webkit-gradient(linear, left top, left bottom, from(#0095cc),
to(#00678e));
background: -moz-linear-gradient(top, #0095cc, #00678e);
}
/* Fixes submit button height problem in Firefox */
.tfbutton2::-moz-focus-inner {
border: 0;
}
.tfclear{
clear:both;
}
</style>
</head>
<body>
<!-- HTML for SEARCH BAR -->
<div id="tfheader">
<form id="tfnewsearch" method="get" action="http://www.google.com">
<label for="tfq1b">Male</label>
<input type="text" id="tfq1b" class="tftext tftextinput1" name="q" size="21"
maxlength="120" value="Search our website"></input>
<input type="text" id="tfq2b" class="tftext tftextinput2"
name="q" size="21" maxlength="120" value="city"></input>
<input type="submit" value=">" class="tfbutton2">
</form>
<div class="tfclear"></div>
</div>
</body>
</html>