Posted By

deftonez4me on 08/19/09


Tagged

javascript cakephp


Versions (?)

Highlight Specified Form fields - Javscript/CakePHP


 / Published in: JavaScript
 

  1. <script type="text/javascript">
  2. <? if(isset($highlight_fields)) {
  3. foreach($highlight_fields as $field):
  4. echo "document.getElementById('$field').className='highlight-field';";
  5. endforeach;
  6. } ?>
  7. </script>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: deftonez4me on August 19, 2009

$this->set('highlight_fields', array('UserLname'));

You need to login to post a comment.