jquery - Form data value from view - Javascript -
i'm trying append data form data view, returns undefined
code:
html:
<input type="text" id="iditem">
<button id="idbtn" type="button" onclick="mymethod()">aceptar</button>
javascript:
function mymethod(){ var formdata = new formdata() formdata.append("nombre",$('#iditem').value) //input-text }
any suggest?
thanks.
try change $('#iditem').value
=> $('#iditem').val()
wiki
Comments
Post a Comment