Skip to main content

Ronn Black's Library tagged QuickD   View Popular

Buying Stocks Commission-Free

  • are about 1,000 U.S. companies that sell their stock directly to
    shareholders with no commission

AutoComplete jQuery plugin recommended by MVC in Action

Looks like format of data it expects is much simpler than the one I was using.

dyve.net/jquery - Preview

QuickD

01 Oct 09

jQuery Inline Search Plugin

Easy to implement function of how to do filter on select list based on a text box.

vision-media.ca/...jquery-inline-search-plugin - Preview

QuickD jquery

Easy to implement Filter on select box - suneelgv - Jquery search on Select Option

  • $.fn.search = function( origOptions ,selectElement) {
     
    $(this).keyup(function(){
        var searchString =
    $(this).val();
       
    selectElement.empty();
        if (searchString.length >
    0){
          for(i=0;i<origOptions.length;i++)
    {
             
    if((origOptions[i].text.indexOf(searchString)>-1)){
         
           
    selectElement.append(origOptions[i]);
         
        }
          }
       
    }
        else {
         
    selectElement.append(origOptions);
        }
     
    });
    };

    $(document).ready(function(){
      var
    opts=$('select[name="selectedProductGroupId"] > option').get();
      var
    slct=$('select[name="selectedProductGroupId"]');
     
    $('#prodFilter').search(opts,slct);
    });
    • Change to this for case insensitive search.
      $.fn.search = function(origOptions, selectElement) {
      $(this).keyup(function() {
      var searchString = $(this).val();
      selectElement.empty();
      if (searchString.length > 0) {
      for (i = 0; i < origOptions.length; i++) {
      if ((origOptions[i].text.toLowerCase().indexOf(searchString.toLowerCase()) > -1)) {
      selectElement.append(origOptions[i]);
      }
      }
      }
      else {
      selectElement.append(origOptions);
      }
      });
      };
      - on 2009-10-01
    Add Sticky Note
30 Sep 09

Jquery: Filter dropdown list as you type - Stack Overflow

  • I wrote a little script to do this a few years ago. It could be
    packaged up as a jQuery plug-in quite easily, probably. You're welcome to it.

jQuery disable SELECT options based on Radio selected (Need support for all browsers) - Stack Overflow

  • The proper way to achieve the functionality you want is just to remove the
    options. As you discovered the hard way, disabling individual options is not
    supported particularly well across browsers. I just woke up and feel like
    programming something so I whipped up a small plugin to easily filter a select
    based on a radio's selected ID attribute. Although the rest of the solutions
    will get the job done, if you are planning on doing this throughout your app
    this should help. If not, then I guess it's for anyone else that stumbles upon
    this. Here is the plugin code you could stash away somewhere:

jQuery filter demo · Matt Ryall’s Weblog

  • You just type a few keystrokes and some JavaScript goes through the list of
    pictures and selects the ones with titles that match what you typed.
    Surprisingly, the JavaScript for this with jQuery is very simple:
1 - 20 of 241 Next › Last »
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo