Before => HP
After => HP="blue"
My Source Code
st = st.replace(/HP/,"HP="blue"");
If not have quotation marks it's ok. But I would like to replace with it (HP="blue")
Thanks you very much.