Forum Discussion
LijaHarris
Qrew Cadet
I figured some of this out. I have gotten the prompt to work in the console, but how do I get it to work in the code page?
------------------------------
Lija Harris
------------------------------
------------------------------
Lija Harris
------------------------------
RyanStanford2
3 years agoQrew Member
Hey Lija,
From the code in your original question, you set the input variable to include the field xml tags of the xml api...
var inputzip = "<field fid='16'>" + $("input[name=_fid_16]").val() + "</field>";
So you comparison is trying to compare with those tags.
What you are probably looking for is more like:
var inputzip = $("input[name=_fid_16]").val();
------------------------------
Ryan Stanford
------------------------------
From the code in your original question, you set the input variable to include the field xml tags of the xml api...
var inputzip = "<field fid='16'>" + $("input[name=_fid_16]").val() + "</field>";
So you comparison is trying to compare with those tags.
What you are probably looking for is more like:
var inputzip = $("input[name=_fid_16]").val();
------------------------------
Ryan Stanford
------------------------------