This is a migrated thread and some comments may be shown as answers.

Button filter not show

1 Answer 60 Views
ListView
This is a migrated thread and some comments may be shown as answers.
long
Top achievements
Rank 1
long asked on 21 Jul 2011, 04:09 AM
Hi Everybody,

I have a listview and basic filter function in a user control
But when I change selected in FieldCombo, Button filter and valueBox not show
Are there any proble in Javascrip ? My code as below, please suggest me a way to fix that

Thanks 
function fieldComboSelectedIndexChanged(sender, args) {
     //debugger;
     if (args.get_item().get_value() == "..") {
         NoFilterChosen();
     }
     else {
       
         $('div[id=boxValueDiv]').show(0);
          
         $('div[id=radioButtonDiv]').show(interval, showRemainingControls);
      
 
     }
 
 }
 
 function showRemainingControls() {
     //debugger;
     $('div[id=buttonsDiv]').fadeIn(interval);
 }
 
 
 function hideRemainingControls() {
     //hide all the UI filter data controls
     $('div[id=boxValueDiv]').fadeOut(interval);
     $('div[id=buttonsDiv]').fadeOut(interval);
 }

1 Answer, 1 is accepted

Sort by
0
Thad
Top achievements
Rank 2
answered on 03 Aug 2011, 12:45 AM
Hi Long,

Could you please include the markup for the divs you are trying to show and hide with jQuery?  My first thought is that the div's are server side  (i.e.  <div id="boxValueDiv" runat="server">), which would be why the jQuery isn't finding them, but unless we see that I don't think we can help you.

Thanks!!
Thad
Tags
ListView
Asked by
long
Top achievements
Rank 1
Answers by
Thad
Top achievements
Rank 2
Share this question
or