By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,137 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

object.class

P: 77
hello..
i have this script..

[HTML]theTextarea.class="requiredfield";
theTextarea.value="<?php echo $this->validation->work_description; ?>";[/HTML]


but the browser shown IE an error "Expected Identifier"

anyone who has the answer??

thanks
Jul 17 '08 #1
Share this Question
Share on Google+
4 Replies


acoder
Expert Mod 15k+
P: 16,027
That should be className.
Jul 17 '08 #2

P: 77
That should be className.

thanks...but i've already solved the problem with this changes

Expand|Select|Wrap|Line Numbers
  1. theTextarea.value="<?php echo $this->validation->work_description; ?>";

thanks a lot
Jul 18 '08 #3

P: 77
thanks...but i've already solved the problem with this changes

[HTML]theTextarea.value="<?php echo $this->validation->work_description; ?>";[/HTML]


thanks a lot

sorry sorry...not that changes, but this one (class) changes

Expand|Select|Wrap|Line Numbers
  1. theTextarea.setAttribute('class', 'requiredfield');
thanks....
Jul 18 '08 #4

acoder
Expert Mod 15k+
P: 16,027
Hmm, are you sure that works in IE?
Jul 18 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.