Remove input and dropdown value with jquery - Javascript jQuery

Javascript examples for jQuery:Select Dropdown

Description

Remove input and dropdown value with jquery

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> 
      <script type="text/javascript">
    $(function(){/*ww w .j  ava 2  s  . com*/
var parent_email = $("input[name=parent_email]");
parent_email.val('');
    });

      </script> 
   </head> 
   <body> 
      <input type="text" name="parent_email" value="parent">  
   </body>
</html>

Related Tutorials