Simple Javascript question
Posted
by Rachel
on Stack Overflow
See other posts from Stack Overflow
or by Rachel
Published on 2010-05-20T22:27:52Z
Indexed on
2010/05/20
22:30 UTC
Read the original article
Hit count: 188
JavaScript
|syntax
I have products : offer_id
in javascript and am getting value of offer_id dynamically.
Let say I get products : 12345
but now instead of that I want it to be as products : ;12345
, than how can this be achieved in javascript.
I have tried :
products : ';'.offer_id
products : ';'."offer_id"
products : ';'.'offer_id'
products : ";".offer_id
But all of my above trials have failed and am getting syntax error for each one of those. I am newbie to Javascript and so would really appreciate any inputs.
© Stack Overflow or respective owner