Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

297
Views
Form validation not working with ckeditor jquery

I am working with form validation, i have three fields (title,file,ckeditor), validation is working only with "title and file" but whenever i try to validate "ckeditor" then nothing is working for me,Here is my html code

<input type="text" class="form-control" name="title" id="title">
  <input class="form-control validate[required]" type="file" id="file" name="file">
  <textarea class="ckeditor" name="editor1" id="editor1"></textarea>
            

Here is my script code

<script>
 $().ready(function() {
 $("#addblog").validate({
          
            rules: {
                    title: {
                     required: true
                     },
                     file: {
                     required: true
                     },
                  'editor1': {
                    required:  required: function() 
                    {
                     CKEDITOR.instances.cktext.updateElement();
                    }
             },
             messages: {
                      file: {
                      required: "Please enter your image"
                  }
                 },
              ignore: [],   
        });
 });
</script>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!