Posts

Event Loop in Javascript - What, Why and How

Image
Everyone knows that javascript is single threaded . But is it guaranteed? - If you answer to this as YES then you might want to read on as there is a concept of event loop in javascript which will change your view (No, it does not make javascript multi-threaded). Then what it is? - Let's read on...

Validate single/multiple ckeditor fields in a form

Today I came across a frustrating issue in which I had two textareas which I am using as a ckeditor in a given form. Now in my whole form, I am using HTML5 validations and all I wanted was to make all my fields compulsory. So, I thought adding the “required” attribute will do the trick and I’ll be on my way. But, required attribute worked everywhere except for the ckeditor fields.