javascript - Best way to strip quotation marks from form input with jquery -
i have following form input i'm going process:
<tr class="formularow"> <input type="text" class="ingredient required" name="ingredient"> </tr>
i store value input this:
var ingredient = $(".formularow").find(".ingredient").val();
when save array, value stores "something" quotation marks around it.
what's best way remove these quotation marks using jquery?
the quotation marks meant there state string.
eg. ["beef"] array single element containing string beef. normal.
the " not part of string, , impossible remove.
Comments
Post a Comment