Login Block - add text into fields?

Permalink
Hi all,

In the free login block I am trying to add some wording which disappears when the user clicks into the field

this is from view.php but i'm not sure where to put the initial value?

<div class="uNameWrap">
         <?php   echo $form->text('uName',$uName); ?>
      </div>


thanks for looking!

 
12345j replied on at Permalink Reply
12345j
change
<?php   echo $form->text('uName',$uName); ?>

to
<?php   echo $form->text('uName',$uName,null,array('placeholder'=>'your text to dissapear')); ?>
jamesonline replied on at Permalink Reply
I have tried but it didn't work. Any other suggestion?
maar replied on at Permalink Reply
maar
<?php echo $form->text('uName', $uName, array('placeholder' => 'Your text to dissapear')); ?>