onclick mit Cakephp html-Eingabe

Ich brauche Hilfe, ich bin mit CakePHP und deren html-helper. Muss ich alle auswählen im Eingabefeld, wenn ich Sie in das Eingabefeld ein.

JavaScript:

`<script type="text/javascript">
   function SelectAll(id)
    {
      document.getElementById(id).focus();
      document.getElementById(id).select();
    }
</script>`

Php:

 `<?php echo $html->input('Listing/client_name', array('size' => '15','id' => 'client_name', "onclick'=>'SelectAll('client_name');", 'value'=>'Seller Name', 'class'=> 'font_display_normal' ))?>`
InformationsquelleAutor learner23 | 2012-08-06
Schreibe einen Kommentar