jquery - Javascript function written in script tag call from Js file -
i in trouble. have cshtml file in script tag have function call setformsvalue
<script> function setformvalues(selecteditem) { $('#murworksheetid').val(selecteditem.murworksheetid); $('#patientid').val(selecteditem.patientid); $('#txtmurdate').val(selecteditem.murdate2); $('#txtpatientname').val(selecteditem["objpatientmodel.title"]); } </script>
i calling method js file have imported in cshtml file.
var selecteditem = entitygrid.dataitem(row); setformvalues(selecteditem);
its giving error setformvalues not defined.
Comments
Post a Comment