jquery , rails remote : true

This work for the fresh page.


$jquery = $("#audio")


but after


$('.modal-body').html('<%= j render("form") %>');


the $jquery will not work anymore

it seems like jquery still remember the cached and can't reference the new one

that rails replace.


so,


$jquery = $(".modal-body").find("audio")


Helps,