I want to display only those that contain a word.
With this code I get the contents of the news that interests me out "".
function filtroContenido(value){
var palabrasClave=["ABOGAD","DETENID"]
var nada=""
var valido=false;
for(i = 0; i < palabrasClave.length; i++) {
if (value.toUpperCase().indexOf(palabrasClave)!=-1){
valido=true;
i=palabrasClave.length;
}
Code: Select all
}
if (valido){return value}else {return nada}; }
But what I want is that the sun comes out the corresponding item. I want only the corresponding mobilegrid out.
Thanks