2 more things:
1. "is it possible or not plz i need an answer !" is not a good title, so I've changed it to something more appropriate. Please remember to provide a meaningful Title for any threads started (see the FAQ entry
Use a Good Thread Title).
This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions. Thanks!
2. To include the variable within tags, e.g. <span>:
- formdiv.innerHTML += '<span>' + x + '</span>';