Hi! New here, but was hoping to get this figured out in the next day or two.
I'm working on a project where the User enters a Zip code and on Submit, the Zip Code is available under the variable "zip".
I've been trying a lot of things, so either this coding is close or may not make sense at all. I'm using it to get the already stored "zip" from Yahoo's simpleWeather. At the bottom of this coding, the last line reads that I'm assigning "zip" the function "zipfx" in hope that "zip" will run the function which grabs the zip code entered from the form. I appreciate any help ASAP!
My current HTML:
<form name="zipSearch" action="" method="post">
<input type="text" name="zipEntry" placeholder="Enter Zip Code" value=""/>
<input type="submit" name="zipSubmit" value="Search" onClick="zipfx()"/>
My current JS:
var zipd= document.forms["zipSearch"]["zipEntry"].value;
var zip = zipfx();