0

I am using rails 3.2 and active scaffold 3.2.3,i wanted to clear the search contents after refreshing the page(empty search fields).

user1495911
  • 11
  • 1
  • 4

1 Answers1

0

You can do it simply

   define javascript tag in your page and write this code   

   <script type="text/javascript>">

   $(document).ready(function () {

      $("your_text_field_id").val("");

    });

    </script>

This will surely works...

Kashiftufail
  • 10,815
  • 11
  • 45
  • 79