Please dont say things like "I tried it it dosnt work"
post what you tried, often times you may think you tried it correctly but made a mistake or were confused about something(trust me being new myself i have done that a thousand times)
so post your new code and we can see if mistakes were made

did you try kebos suggestion in post#2, that is a cleaner way of doing what you want and less prone to errors with quotes and such

again post the code you tried and the erro you get and where the error occurs