Ok I'm missing something here.
Now when I submit some text I get an integer in the console.
Is there some trick to return the string instead?
I'm open to suggestions if there's a better way to do this but it has to be in javascript.
Code:
<form name="add_point">
<input type="text" value="" name="postcode" size="8" />
<input type="submit" value="Place Marker" onclick="javascript:
initialize(add_point.postcode.value)" />
Code:
function initialize(x){
console.log(x);
Now when I submit some text I get an integer in the console.
Is there some trick to return the string instead?
I'm open to suggestions if there's a better way to do this but it has to be in javascript.