Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery next()引导数据提供_Jquery_Ajax_Json_Twitter Bootstrap - Fatal编程技术网

Jquery next()引导数据提供

Jquery next()引导数据提供,jquery,ajax,json,twitter-bootstrap,Jquery,Ajax,Json,Twitter Bootstrap,解决 我的剧本是: <tr><td class="span1"><b><?php echo $this->getLang('UI', 49);?></b></td> <td> <div class="input-append"> <input type="text" id="HackType_Search" name="inputType"

解决

我的剧本是:

<tr><td class="span1"><b><?php echo $this->getLang('UI', 49);?></b></td>
    <td>
        <div class="input-append">
             <input type="text" id="HackType_Search" name="inputType" placeholder="Type" class=" input-xlarge ajaxStatusIndicatorInput" style="margin-bottom:0px;" data-provide="typeahead" data-items="4" rel="tooltip" title="Choose the type of the file which mostly fits." required>
                    <span class="add-on"></span>
         </div>
     </td>
</tr>
只有在没有提供类似此数据的数据时,才会起作用。数据提供=typeahead数据项=4

这项工作:

<tr><td class="span1"><b><?php echo $this->getLang('UI', 49);?></b></td>
<td>
    <div class="input-append">
        <input type="text" id="HackType_Search" name="inputType" placeholder="Type" class=" input-xlarge ajaxStatusIndicatorInput" style="margin-bottom:0px;" rel="tooltip" title="Choose the type of the file which mostly fits." required>
        <span class="add-on"></span>
    </div>
</td>
我检查了所有的数据,它们都工作了,我可以找到输入,但是当我试图找到跨度时,它只能在没有提供数据的情况下得到它

我希望您能帮助我,任何建议都将不胜感激:

编辑:FF代码检查器向我展示了以下内容:

因此引导程序Typeahead正在向DOM中插入一个列表

试试看

$('input[name= + data.name + ']').parent().find('.add-on').addClass('statusWarningMini');
见文件:/


非常感谢。效果非常好:>
<div class="input-append">

<input id="Game_Search" class="input-xlarge ajaxStatusIndicatorInput" type="text" required="" title="" rel="tooltip" style="margin-bottom:0px;" data-items="4" data-provide="typeahead" placeholder="Game" name="inputGameID" data-original-title="Choose the game the file works with."></input>
<ul class="typeahead dropdown-menu" style="top: 454px; left: 516.7px; display: none;">
    <li class="active" data-value="Silkroad Online"></li>
    <li data-value="Crysis 2"></li>
    <li data-value="Planetside 2"></li>
    <li data-value="Counter-Strike 1.6"></li>
</ul>
<span class="add-on"></span>
</div>
$('input[name= + data.name + ']').parent().find('.add-on').addClass('statusWarningMini');