title: Calling JS within a simple form input (Rails)
body: <p>I am using simple form in my application, i have an inline js to set field name and
  unset when user clicks on the field and modify it as shown below</p>
  
  <p><code>
  input type="text" class="ftext" value="First Name" onclick="if(this.value=='First Name') this.value='';" onblur="if(this.value=='') this.value='First Name'" 
  </code></p>
  
  <p>I am trying to do this with simple form inpt <code>&lt;%= f.input :password, :required => true, :class => "ftext" %></code>, but cannot able to find any solution in web.</p>
  
  <p>Please suggest me on this.</p>
  
  <p>thanks,
  Balan</p>