Here I have a mvcjqgrid from which i am having an link button as below
mvcJqGrid.demo.buttonize = function (cellvalue, options, rowobject) {
return <a onclick="return mvcJqGrid.demo.showIdproofmodal('+options.rowId+')"><div class="ui-icon ui-icon-pencil" style="display:inline-block"></div></a>
}
And here I have the function for the link button.
mvcJqGrid.demo.showIdproofmodal = function (id){
$("#NoteDialog").load("/UserAccount/UploadIdProof/" + id, function ()
{alert(id);
$("#NoteDialog").dialog('open'); });
return false;
}
When the function mvcJqGrid.demo.showIdproofmodal(00038748492234) passes a value like above I receive the no as 38748492234 in my actual function, which causes me some functional error, I need to get the exact value in the argument type. Help me.
Try this code
Update:
showIdproofmodal(00038748492234). In this case javascript willconsider the parameter as a number.
showIdproofmodal('00038748492234'),javascript engine will consider it a string variable.