Jquery selector for textarea and input fields?

Jquery selector for textarea and input fields?

Hi,

I have a function targetted to input fields with class="replacetext" and type="text" $('input.replacetext[type=text]')   

How can I make this same function work also for textareas with class="replacetext"?
I have tried:
$('textarea ,input.replacetext[type=text]')
$('textarea.replacetext ,input.replacetext[type=text]')
these does not work...

Heres my code:
  1. $(document).ready(function(){
  2.       $('input.replacetext[type=text]').live('focus',function(){
  3.             if (this.alt == '') {
  4.                 this.alt = this.value;
  5.                 this.value = '';
  6.             } else if (this.value == this.alt) {
  7.                   this.value = '';
  8.             }
  9.       });
  10.       $('input.replacetext[type=text]').live('blur',function(){
  11.             if (this.value == '') {
  12.                   this.value = this.alt;
  13.             }
  14.       });
  15. });