[jQuery] jEditable - Name of class

[jQuery] jEditable - Name of class


I want to catch the name of the classroom that is being edited at the
moment , So that my script php knows of which div is come the
information.
If div link 1 or div link 2 or div link3 that it was edited, I try
with the code, $('div').attr('class'), but he did not function
$(".link1, .link2, .link3, .link4").editable("http://localhost/somzoom/
index.php/admin/atualizaVideos/1/", {
        id     : 'elementid',
        name     : $('div').attr('class'),
        submit : 'Modificar',
        indicator : "<img src='http://localhost/somzoom/img/load.gif'>",
        tooltip : 'Clique para editar...'
    });
<div class='link1'>Link 1</div>
<div class='link2'>Link 2</div>
<div class='link3'>Link 3</div>
<div class='link4>Link 4</div>
Thanxs,
Hermes Alves
www.argohost.net