Highlight Specified Form fields - Javscript/CakePHP


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  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

You need to login to post a comment.