Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.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
C# _C#_Javascript_Html_Html Lists - Fatal编程技术网

C#

C# ,c#,javascript,html,html-lists,C#,Javascript,Html,Html Lists,嗯,我有个问题。我试图将li改为另一个返回PartialView的li-after函数。我想关注李彦宏,这不是当前李彦宏关注的焦点 他认为: <ul> <li id="datos"><a href="#tabs-1r">Datos</a></li> <li id="resultado"><a href="#tabs-2r">Resultado</a></li> </u

嗯,我有个问题。我试图将li改为另一个返回PartialView的li-after函数。我想关注李彦宏,这不是当前李彦宏关注的焦点

他认为:

<ul>
    <li id="datos"><a href="#tabs-1r">Datos</a></li>
    <li id="resultado"><a href="#tabs-2r">Resultado</a></li>
</ul>
<div id="tabs-1r" style="top: 0px; width: 100px;">
    <form id="consultaCE">
       <left>
           <table style="text-align: left">
              <tr >
                 <td> <label class="labelNormal">Nombre</label></td>
                 <td>   @Html.TextBoxFor(model => model.NombreCentroEducativo, null, new                                    { @class = "textBoxLarge", @maxlength = "60" })</td>
              </tr>
              <tr >
                 <td > <label class="labelNormal">Nro. Establecimiento</label></td>
                 <td>   @Html.TextBoxFor(model => model.NroEstablecimientoCentroEducativo, null, new { @class = "textBoxLarge" }) </td>
              </tr>                      
              <tr>
                 <td> <label class="labelNormal">Departamento</label></td>
                 <td> @Html.DropDownListFor(model => model.DepartamentoCentroEducativo, ViewBag.Departamentos as IEnumerable<SelectListItem>, new { @id = "deptoID", @class = "dropdownLarge" }) </td>  
              </tr>
              <tr>
                 <td> <label class="labelNormal">Localidad</label></td>
                 <td> @Html.DropDownListFor(model => model.LocalidadCentroEducativo, ViewBag.Localidades as IEnumerable<SelectListItem>, new { @id = "dropLoc", @class = "dropdownLarge" })   </td>    
              </tr>
              <tr>
                 <td > <label class="labelNormal">Paraje/Barrio</label></td>
                 <td>  @Html.DropDownListFor(model => model.ParajeBarrioCentroEducativo, ViewBag.Parajes as IEnumerable<SelectListItem>, new { @id = "dropParaje", @class = "dropdownLarge" })   </td> 
              </tr>
              <tr>
                 <td > <label style="margin-left:15px" class="labelNormal">Subsistema</label></td>
                 <td>   @Html.DropDownListFor(model => model.SubsistemaCentroEducativo, ViewBag.Subsistemas as IEnumerable<SelectListItem>, new { @class = "dropdownLarge" }) </td> 
              </tr>
           </table>  
       </left>
       <button id="btnBuscarCentros" style="margin-top: 10px;" class="btn btn-primary">
                                    Buscar
       </button>
    </form>
</div>
<div id="tabs-2r">
    <div id="ResultadoBusquedaCE" style="height: auto; float: left; font-size: 12px;">
    </div>
                                @Html.ActionLink("Exportar Excel", "GuardarConsultaCE", new { }, new { @class = "btn btn-primary", @style = "color:white" })
</div>
我想去Resultado和li active。
对不起,我的英语不好,谢谢

请尝试更改成功回调,如下所示:

success: function(data) {
 $('#ResultadoBusquedaCE').html(data) ;
 $('#resultado').addClass('active'); // Add your activa class for highlighting the li
 $('#resultado a').trigger('click'); // trigger a click on hyperlink inside the li
}
success: function(data) {
 $('#ResultadoBusquedaCE').html(data) ;
 $('#resultado').addClass('active'); // Add your activa class for highlighting the li
 $('#resultado a').trigger('click'); // trigger a click on hyperlink inside the li
}