0
How to get the position of the object that was found in $.inArray() ?
var obj = [
{
cidade : [
{
nome : "Maringá" ,
uf : "PR" ,
} ,
{
nome : "Curitiba" ,
uf : "PR" ,
} ,
{
nome : "Londrina" ,
uf : "PR" ,
}
]
} ,
{
estado : [
{
nome : "Paraná" ,
sigla : "PR" ,
regiao : "sul"
} ,
{
nome : "São Paulo" ,
sigla : "SP" ,
regiao : "sul"
} ,
{
nome : "Rio Grande do Sul" ,
sigla : "PR" ,
regiao : "sul"
}
]
}
];
exemplo.init();
Can you explain it better? want to know the position / index of the object that has a certain name within the "state" array for example?
– Sergio
Can Douglas explain the question better? It’s unclear what he intends to do. Explaining better will get a better answer too.
– Sergio