Bootstrap Validator: Validating dynamic radio

176
March 15, 2018, at 5:52 PM

I'm trying a dynamic input validation yet

HTML:

<input type="radio" value="1"  class="job_knowledge" name="job_knowledge[0]" required>
<input type="radio" value="2"  class="job_knowledge" name="job_knowledge[0]" required>
<input type="radio" value="3"  class="job_knowledge" name="job_knowledge[0]" required>

//clones field

<input type="radio" value="1"  class="job_knowledge" name="job_knowledge[1]" required>
<input type="radio" value="2"  class="job_knowledge" name="job_knowledge[1]" required>
<input type="radio" value="3"  class="job_knowledge" name="job_knowledge[1]" required>

//clones field

<input type="radio" value="1"  class="job_knowledge" name="job_knowledge[2]" required>
<input type="radio" value="2"  class="job_knowledge" name="job_knowledge[2]" required>
<input type="radio" value="3"  class="job_knowledge" name="job_knowledge[2]" required>

can't validate it when I try placing a:

JS BOOTSTRAP VALIDATOR

$('#evaluation_form').bootstrapValidator({
    feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
            job_knowledge:{
                selector:'.job_knowledge',
                validators:{
                    notEmpty:{
                      message: "This field is required"
                    }
                }
              }
        }
    });
Rent Charter Buses Company
READ ALSO
Is it possible that Cordova plugin run on apache webserver?

Is it possible that Cordova plugin run on apache webserver?

I am trying to get the BSSID of an android phone which connected to a websiteI found some information about getting BSSID using javascript, and the answer is it is impossible unless I made native code or plugin

201
Why I need add the `Authorization` in the request header when access the APIs?

Why I need add the `Authorization` in the request header when access the APIs?

I use the Python/Django write the backend, use Django-Rest-Framework write the APIs, I also used the rest_auth, allauth, see my settingspy:

187
formData image attribute file issue

formData image attribute file issue

I'm sending an image attribute file by ajax callBut having problems on getting that file in image attribute array in formData

263
Get selected text position inside div and persist

Get selected text position inside div and persist

I am trying to get the position of the selected text, replace it with some HTML and then I want to persist the position of the selected text, so that the next time I render the html I want to show the highlight on the selected text

306