sdr001
0
Light Poster
Recommended Answers
Jump to Post
onClick='sendDataST(document.getElementById('begP').value
The statement ends on the second ' mark. Use " to enclose values:<input class = "btn" name = "calculate" type = "button" VALUE="Shortest Path" onClick="sendDataST(document.getElementById('begP').value + '\n' + document.getElementById('endP').value + '\n')">
Jump to PostUse escaped double-quote characters (\"):
<< "<input class = \"btn\" name = \"calculate\" type = \"button\" VALUE=\"Shortest Path\" onClick=\"sendDataST(document.getElementById('begP').value + '\n' + document.getElementById('endP').value + '\n')\">\n"
I've changed most of them. I think that the ones I didn't change will be okay, but it's been a while since …
All 5 Replies
Momerath
1,327
Nearly a Senior Poster
Featured Poster
sdr001
0
Light Poster
Fbody
682
Posting Maven
Featured Poster
sdr001
0
Light Poster
Fbody
682
Posting Maven
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.