1By LOVE
2$('#divStaffContent').find('input:text, input:password, select')
3 .each(function () {
4 $(this).val('');
5 });
6 }
7
1<body>
2 <form method="" action="">
3 <input type="text" name="email" class="input" />
4 <input type="submit" value="Sign Up" class="button" />
5 </form>
6</body>
7
8<script>
9 $(document).ready(function() {
10 $(".input").val("Email Address");
11 $(".input").on("focus", function() {
12 $(".input").val("");
13 });
14 $(".button").on("click", function(event) {
15 $(".input").val("");
16 });
17 });
18</script>
1<script>
2 $(document).ready(function() {
3 $( "#buttonId" ).click(function() {
4 $(':input','#formId')
5
6.not(':button, :submit, :reset, :hidden')
7
8.val('')
9
10.prop('checked', false)
11
12.prop('selected', false);
13});
14});
15</script>