Re: Using Javascript
| From: | Martin Clifford | Date: | Mon, 22 Jul 2002 12:32:59 +0000 |
| Subject: | Re: Using Javascript | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108850@lists.php.net to get a copy of this message | ||
Just my opinion, but it is ALWAYS a good idea to terminate statements with semicolons, no matter if
there is or isn't additional statements.
But thanks Chris for at least using standardized HTML coding practices. I can't stand it when
I see tags and the like that don't cooperate with standards.
Martin
>>> "Chris Earle" <chris@earleweb.com> 07/22/02 01:18AM >>>
You use the "onClick" feature like this:
<input type="text" name="text1" onClick="dd.value='<? echo
$correct; ?>'">
no semicolon unless there is more than one thing being called/defined -- you
use single quotes within the onClick's double quotes
"Uma Shankari T." <umashankari@lantana.tenet.res.in> wrote in message
news:Pine.LNX.4.21.0207221036440.5663-100000@lantana.iitm.ernet.in...
>
> Hello,
>
> I need to display a value on the text box during onClick event where the
> data is fetched from the database..I have given the code like this but it
> is giving unterminated string constant..
>
>
> <input type=text name=text1 onClick=(dd.value="<? echo $correct; ?>");
>
>
> Can anyone please tell me how to solve this ...
>
>
> Thanks & Regards,
> Uma
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php