R
Rudi Hausmann
Hi!
I create HTML pages on the server side. I want to extend DIV elements
with more information.
E.g.:
<DIV id="Joe" />
Now I want Joe to have an age for example and access it using:
$('joe').age = 20;
Doing that directly might work. Or maybe I should better use a wrapper,
which separates the person as own object from the DIV element, like:
GetPersonObject('Joe').age = 20;
I didn't use so much JavaScript until now. Maybe someone already had the
same problem and can provide or link to some code?
Regards,
Rudi
I create HTML pages on the server side. I want to extend DIV elements
with more information.
E.g.:
<DIV id="Joe" />
Now I want Joe to have an age for example and access it using:
$('joe').age = 20;
Doing that directly might work. Or maybe I should better use a wrapper,
which separates the person as own object from the DIV element, like:
GetPersonObject('Joe').age = 20;
I didn't use so much JavaScript until now. Maybe someone already had the
same problem and can provide or link to some code?
Regards,
Rudi