robert_gsfame Posted May 28, 2010 Share Posted May 28, 2010 i really confused with this.. which one is correct onclick=test(document.getElementById('myid').value) how to write the above code correctly in html, php and javascript is it correct if i use this onclick=test(document.getElementById('myid').value) in html, php and javascript i rather confused with the single and double quotes thx Quote Link to comment Share on other sites More sharing options...
Adam Posted May 28, 2010 Share Posted May 28, 2010 I see no difference between the two? i rather confused with the single and double quotes You can use either, they have no real difference in JavaScript. You just need to make sure you close the string with which ever you opened it with. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.