I'm using jLinq to search for a Array
of Objetos
I would like this search to be dynamic, taking the values of Selects
My example:
<select id="firt"><option>Select 1</option></select>
<select id="last"><option>Select 2</option></select>
<select id="phone"><option>Select 3</option></select>
myNewArray = jlinq.from( array ).sort( "date" )
.equals( "first", $( "#first" ).find( "option:selected" )
.equals( "last", $( "#last" ).find( "option:selected" )
.equals( "phone", $( "#phone" ).find( "option:selected" )
.group( "state" );
But I want something like this:
myNewArray = jlinq.from( array ).sort( "date" )
//for each selected option
.group( "state" );