clear value input jquery
<body>
<form method="" action="">
<input type="text" name="email" class="input" />
<input type="submit" value="Sign Up" class="button" />
</form>
</body>
<script>
$(document).ready(function() {
$(".input").val("Email Address");
$(".input").on("focus", function() {
$(".input").val("");
});
$(".button").on("click", function(event) {
$(".input").val("");
});
});
</script>
Also in JavaScript:
- change width in js
- update head tag metadata vue
- js get string byte size
- npm update package.json version field by code
- if else jquery click function
- jquery select element with data
- set timer
- match ids from 2 arrays in javascript asynchronous programming
- prevent default on enter press
- tree traversal recursion in javascript
- ejs
- how to log something in the console. javascript
- jQuery inline element style get set
- kendo js add one day to a date
- javascript calculate age
- .gitignore nodejs
- how to write a program that alerts the current month in words in javascript
- simple return data jquery
- call node js function from javascript
- convert shp to geojson python
- js typeof number
- json enum string
- how to check if 2 sprites are touching js
- f string javascript