Posts

Showing posts from March, 2018

isNaN Javascript

isNaN is very useful method in javascript to validate the input is a valid number or not. It's return the bool value. if value is number then it will return "false" otherwise it will return "true". One more thing you have to keep in mind that this function will return "false" if you are passing blank/empty value to this function. to overcome this problem always use parseInt method. isNaN(parseInt("Enter the value"))

Add-Edit-Delete-Duplicate rows in HTML table using AngularJS, jQuery and MVC

Image
My client asked me to build the screen that will allow users to add/modify/delete/duplicate records and it should be in tabular format. In this post I am going to use MVC, angularJS, jQuery and HTML technologies to achieve this. Lest get starts Screen mock-up Add Delete/Edit/Duplicate Update Step – 1 CDN for jQuery , jQuery min & angularJS Step -2 HTML Code < script lang ="javascript" type ="text/javascript">     var baseURL = ' @ Url.Action( "Index" ) ' + "/" ; </ script > < div style =" display : none ; color : red" id ="errContainer">     < div class ="span12" id ="divMessage"></ div > </ div > < table id ="tblFutureBulkUpload" style =" font-size : 12px ; padding-left : 5px ; border-color : Black ; border-width : 1px ; border-style : solid ; border-collapse : collapse...