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

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -