# Dafault value of a textbox prompting user of what to enter

**URL:** <https://www.ruby-forum.com/t/dafault-value-of-a-textbox-prompting-user-of-what-to-enter/121494>\
**Category:** Rails\
**Created:** [November 28, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/dafault-value-of-a-textbox-prompting-user-of-what-to-enter/121494 "2007-11-28T13:47:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgudibanda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a9adbd/32.png) [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Post date:** [November 28, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/dafault-value-of-a-textbox-prompting-user-of-what-to-enter/121494/1 "2007-11-28T13:47:03Z")

</div>

Hi,

I want to create a textbox that will have default text like "enter  
author, title or ISDN number " which dissapears of when user types in  
something.

Is there default attribute in rails for this? Or DO I need to go JS way?

Regards,  
Sandeep G
