I have a form like this
<form action="">
<label for="name">Name</label>
<input type="text" id="name" />
</form>
<script type="text/javascript">
jQuery(document).ready(function() {
var Name = jQuery('#name').val();
jQuery('#name').blur(function() {
console.log(Name);
});
});
</script>
but here when I am entering any values in the input text field it is showing error like
(an empty string). So can someone tell me what is the wrong here? How to solve this?
actiontags.