The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Code:
$options .= "<option onClick=\"setvals(\"$id\",\"$subject\",\"$msg\");\">".$row['subject']."</option>"; echo $options; Code:
<option onClick="setvals("1,Testing Subject,Wootang Clang. I banged your mom. I banned you from my forum.);>
|
|
#2
|
|||
|
|||
|
PHP Code:
|
|
#3
|
|||
|
|||
|
Hi
You have to use single quotes inside the JavaScript function call setvals(), because you cast the onClick value to be enclosed with double quotes! PHP Code:
|
|
#4
|
||||
|
||||
|
Moved to the correct forum, please read the forum descriptions more carefully in future
|
![]() |
|
|