I think it's a simple question but I'm not finding a solution to my problem.
Example:
Object:
{projectId:"1" name:"Projeto A" image:"imagem.jpg"}
{projectId:"2" name:"Projeto B" image:"imagem.jpg"}
{projectId:"3" name:"Projeto C" image:"imagem.jpg"}
{projectId:"4" name:"Projeto D" image:"imagem.jpg"}
{projectId:"5" name:"Projeto E" image:"imagem.jpg"}
I have a menu in which I am already getting the value of the id and would like to search this object through this id to load the correct image.
$('.btn').on({
mouseenter: function () {
$id = ($(this).attr("id"));
}
})
Thank you very much:)