2014-10-29 2 views
0

jQuery 명령을 실행하여 콤보 상자를 숨기려고합니다. HTML은 다음과 같습니다jQuery 대상 콤보 박스를 숨기기

<table id="system-selector" cellspacing="0"> 
    <tr> 
     <td> 
      <span class="custom-combobox" style="display: inline-block;"> 
       <span role="status" aria-live="polite" class="ui-helper-hidden-accessible"></span> 
       <input id="select_system_CB" name="select_system_CB" title="" class="custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left ui-autocomplete-input" autocomplete="off"> 
       <a tabindex="-1" title="Show All Items" class="ui-button ui-widget ui-state-default ui-button-icon-only custom-combobox-toggle ui-corner-right" role="button" aria-disabled="false"> 
       <span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"></span> 
       <span class="ui-button-text"></span> 
       </a> 
      </span> 
     </td> 
     </tr> 
OTHER ROWS HERE..... 

내가 오류나 성공이 jQuery를 실행하고있다 : 어떤 도움에 감사드립니다

jQuery('#system-selector .custom-combobox').hide(); 

!

+3

코드에 문제가 없습니다. \ http://jsfiddle.net/k2prm65q/ –

+2

[fiddle] (http://jsfiddle.net/2vbskzb3/)에서 작동합니다. '$ (document) .ready (function() {your code});로 코드를 래핑 했습니까? – Regent

+1

콘솔을 점검하고 거기에 오류가 있는지 확인하십시오. 내 추측으로는 어딘가에서 오류가 발생하여 스크립트를 위반하고있는 것입니다. – bipen

답변

0
$(".custom-combobox").hide(100); 

이 다음 클래스 당신이 그것을 할뿐만 아니라이 작품을 포함하여 <span>을 숨 깁니다.

+0

긴 하루 지금 ... HTML에 맞춤법 오류가 있습니다. !!!! 감사!! – TheRealPapa

관련 문제