Nested single and double quotes

If you’re using say onclick() and .innerHTML= as part of some inline javascript you may well run into a nested quotes issue. For example, maybe within your .innerHTML=’ you want to give some element an ID – you find you can’t because you need to surround that ID parameter with quotes and you’ve used say […]

Read More

Converting Strings

Convert Value To String var my_value = 15; var my_string = my_value.toString(); Convert String To Int var my_string = "10"; var my_value = parseInt(my_string);    

Read More