1
I’m using jLinno to search for in 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" );
worked perfect! thank you very much!!
– Lugarini