How to stop popup a custom window?I use " e.preventDefault();" on edit event but it does not work,the edit window still popup.
Like this sample, I click the "Edit" button, and popup the edit window.But sometimes I click the "Edit" button, but do not want to popup the custom window,I want to alert("Can not edit"). I just want to popup the edit window when the Product Name is "Chang" or hide the "Edit" button when ProductName is not "Chang"
Like this sample, I click the "Edit" button, and popup the edit window.But sometimes I click the "Edit" button, but do not want to popup the custom window,I want to alert("Can not edit"). I just want to popup the edit window when the Product Name is "Chang" or hide the "Edit" button when ProductName is not "Chang"