There's an error with your PHP code
<?php echo $html->checkboxTag("customer/
f_name",'',array("id"=>"f_name","onclick"=>"enableField()")); ?>

Above should work...

Here's the syntax: checkboxTag ($fieldName, $title=null,
$htmlAttributes=null, $return=false)

On Aug 17, 7:33 pm, Unite <[EMAIL PROTECTED]> wrote:
> <script language="javascript">
> function enableField() {
>         alert("hello");}
>
> </script>
>
> <?php echo $html->checkboxTag("customer/
> f_name",array("id"=>"f_name","onclick"=>"enableField()")); ?>
>
> This onclick isnt even calling the javascript function. plz help!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to