Solved

How to split a string in a column and have it show up in the search drop down box at the footer search box.

Posted on 2014-04-23
1
217 Views
Last Modified: 2014-05-13
take this example here: http://www.datatables.net/examples/api/multi_filter_select.html, now suppose i want to keep Win 98+ / OSX.2+ show up in the platform column but underneath in the drop down box I want it to show Win 98+  in one row and OSX.2+ in the other.
0
Comment
Question by:cbrune
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 40018604
I wouldn't do a 2nd row.  But you can add on to the select in the function fnCreateSelect.  I have a working example here http://jsbin.com/woyem/1/edit. You can either hard code it or generate via your serverside code.  You can also adjust how the data is pulled for the drop down and just use the first 3 letters.

	
			function fnCreateSelect( aData )
			{
				var r='<select><option value=""></option>', i, iLen=aData.length;
				for ( i=0 ; i<iLen ; i++ )
				{
					r += '<option value="'+aData[i]+'">'+aData[i]+'</option>';
				}
// ADD VIA SERVER SIDE CODE or HARD CODE
              r += '<option value="Win">Win</option>'
              r += '<option value="OSX">OSX</option>'
				return r+'</select>';
			}
			

Open in new window

0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have answered several questions lately that were solved utilizing the power of jQuery's AJAX functions, so I thought I would write an article demonstrating the ease of use. Why should I use jQuery as opposed to regular JavaScript? Now I know…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question