Convert Element ID to String
- $(document).ready
- (
- function()
- {
- $("#stepBox li").hover
- (
- function()
- {
- var elid = $(this).attr('id');
- loadSWF("/ovi/lib/swfs/"+elid+".swf", "flashBox");
- }
- );
- }
- );
I need a way to convert the ID on line 9 into a string which can be used as a variable on line 10. Is this possible? An example would be greatly appreciated.
(P.S. I'm truly sorry if this ends up as a double-post. My browser froze up on the last one and I'm pretty sure it never went through)