Page 1 of 1

where to put 2 words in this line

Posted: Mon Nov 01, 2010 4:23 am
by emelianenko
Hello,


been scratching me head as ah cant figure out where to embedd these two words class="whatever" in here. I ve been trying everywhere but I always get a JSON error.

Code: Select all


$sOutput .= '"<a href=\"#tab-' .addslashes($aRow['id_activity']).'\">'.addslashes($aRow['name']).'</a>" ,';


so the line works great like that, but it needs these additional two words because the hyperlink must have an event bound to its clicking, which I do by means of the class.

thanks very much

Emi

Re: where to put 2 words in this line

Posted: Mon Nov 01, 2010 12:24 pm
by mikecampbell
What have you tried? Is this not working:

Code: Select all

$sOutput .= '"<a href="#tab-' .addslashes($aRow['id_activity']).'" class="whatever">'.addslashes($aRow['name']).'</a>" ,';