Posts

Showing posts from June, 2017

How to get CKEditor content in- jQuery?

How to get CKEditor content in- jQuery? You can use  this code         var editor = CKEDITOR.instances.Body;   //Body is the Id of the CKEditor var varMailBody = editor.getData(); alert(varMailBody); Using this we can get CKEditor Content in Jquery

Bind Dropdown List Between Two Dates in DD MMM Format

Bind Dropdown List Between Two Dates in DD MMM  Format var Startdate = System. DateTime .Now;  var lastDate = Startdate.AddDays(30); List Collection For the Store List of Dates List < SelectListItem > listDate = new List < SelectListItem >(); For Loop For the Add Dates in SelectListItem with Suffix for ( DateTime date = Startdate; date <= lastDate; date = date.AddDays(1)) {             int day1 = date.Day;             int month1 = date.Month;             string dtDate = GetDaySuffix(day1) + " " + GetMonthString(month1);      listDate.Add( new SelectListItem { Value = dtDate, Text = dtDate });                 } model.DateList = listDate; Method to Ge...