autocomplete works only with jQuery 1.2.6

0

Well I'm using an autocomplete plugin with 2 input, where I put the value in 1 input and the 2nd is filled in. The problem is that my system works with jQuery 1.7.2 because I have several functions with it. And this auto complete only works with jQuery 1.2.6. How do I resolve this?

Follow my code:

$().ready(function () {

        $("#singleBirdRemote").autocomplete("search.php", {
            width: 260
        });

        $("#singleBirdRemote").result(function (event, data) {
            if (data) {

                $(this).parent().find("input[@name=b]").val(data[1]);

            }
        });

    });
<input type="text" id="singleBirdRemote">

    <input name="a" >
    <input name="b" >
    <input name="c" >
    
asked by anonymous 18.03.2016 / 14:38

2 answers

2

Reproducing the comment:

You do not need the "@" in the selector, simply use

input[name=b]
    
18.03.2016 / 18:57
0

The solution was to remove the @

$(this).parent().find("input[@name=b]").val(data[1]);
    
18.03.2016 / 17:18