resources/assets/js/google_search.js
/**
     * Add one more query input to the form
     */
Add one more query input to the form
Add one more query input to the form
function addInput(){
        var name = $(this).parent().find('input[type=text]').last().attr('name');
        var nameIndex = parseInt(name)+1;
        var inputElement = '<div class="form-group"> <div class="row"> ' +
            '<input type="text" class="form-control query-input" style="text-align: center">' +
            ' </div><span class="glyphicon glyphicon-minus-sign removeButton"></span></div>';
        $(inputElement).insertBefore($(this));
    }
function addInput ( ) { var name = $ ( this ) . parent ( ) . find ( 'input[type=text]' ) . last ( ) . attr ( 'name' ) ; var nameIndex = parseInt ( name ) + 1 ; var inputElement = '<div class="form-group"> <div class="row"> ' + '<input type="text" class="form-control query-input" style="text-align: center">' + ' </div><span class="glyphicon glyphicon-minus-sign removeButton"></span></div>' ; $ ( inputElement ) . insertBefore ( $ ( this ) ) ; }
Add one more query input to the form
Add one more query input to the form