0

How to validate Jquery UI auto complete filed. Im using bootstrapvalidator to validate filed.I tried with this code its not working.

$('#f_flying_from')
        .change(function (e) {
            $('#flights-tab-form').bootstrapValidator('revalidateField', 'f_flying_from');
        });
2
Contributors
2
Replies
17
Views
2 Years
Discussion Span
Last Post by arafath077
1

Can we see the rest of your code? I'm pretty sure you don't need the change function, or you can try the keyup function.

0

thanks for your responce. i fixed that.but the JS not work in Chrome and IE.?

//on change
$('#f_flying_to,#f_flying_to_2')
        .change(function (e) {
            $('#flights-tab-form-2,#flights-tab-form').bootstrapValidator('revalidateField', 'f_flying_to');
        });

        //autocomplete
         $(".autocomplete").autocomplete({
        source: "list.php",
        minLength: 3,
        autoFocus: true,
        scroll: true,
        messages: {
            noResults: '',
            results: function () {
            }
        },
        close: function () {
            $(this).blur();
        }
    }).focus(function (event, ui) {
        $(this).autocomplete("search", "");
    });
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.