Hi,
I want to insert some data into an textarea element from a database. The only point is, that the data must me manipulated bt a javascript. I tried the following, but that doesn't work: (client-side code, the string 'name#^...' is generated by php)
<TEXTAREA name="abonnee_etiket" rows="6" cols="40" value="formatEtiket('name#^address#^city#^country')"></TEXTAREA>
formatEtiket is a javascript function that puts an \n in place of the #^. It performs some other functios, though.
The above is not working, but how can I?
I want to insert some data into an textarea element from a database. The only point is, that the data must me manipulated bt a javascript. I tried the following, but that doesn't work: (client-side code, the string 'name#^...' is generated by php)
<TEXTAREA name="abonnee_etiket" rows="6" cols="40" value="formatEtiket('name#^address#^city#^country')"></TEXTAREA>
formatEtiket is a javascript function that puts an \n in place of the #^. It performs some other functios, though.
The above is not working, but how can I?