?
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
Medium Priority
?
218 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

764 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