Thread: HTML 5 form

    #1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    769
    Rep Power
    41

    HTML 5 form


    Hello, I have an HTML 5 form, pretty basic.

    Instead of presenting a "written warning," the field's border just turns red.

    Here is the linkclick here

    There appears to be a bit of info on the web, but I'm not sure of the best solution.

    Any tips, links, etc. are much appreciated.

    thanks
    -Sean
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2016
    Posts
    4
    Rep Power
    0
    It is showing Syntax error in your php file.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2016
    Posts
    3
    Rep Power
    0
    Yes. I agree with the previous person. There is a syntax error.
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2016
    Posts
    40
    Rep Power
    2
    If you ever come back, post an example of your code and we can look at helping you out with this problem
    Thank You :: John Davies, || Learn how to install WordPress in 5 minutes
    Belira - Web Hosting, Domain Names, Reseller Hosting, VPS Hosting & Dedicated Servers
    Reliable & Professional WordPress Hosting, Joomla Hosting, e-Commerce Website Hosting
    cPanel, Domain Names, SSL Certificates, with A Close & Personal Support 24/7/365
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2017
    Location
    Ahmedabad
    Posts
    17
    Rep Power
    0
    Hi,

    you are create one java script file and below code put in this file after then work your form pretty basis

    Code:
    $('.required-checkboxes').find('[type="checkbox"]').on('change', function(){
      
      var currentName = $(this).attr('name');
      var $group = $('[name="' + currentName + '"]');
    
      // Set/unset the required attribute accordingly
      $group.prop('required', true);
      if($group.is(":checked")){
        $group.prop('required', false);
      }
      
    });
    Thanks.

IMN logo majestic logo threadwatch logo seochat tools logo