I have the below code:
preSearch : function () { var IdValue = $(\'[name="Id"]\').val(); if (!/^[0-9]+$/.test