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).
Asked
Active
Viewed 447 times
1 Answers
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