Getting the value of a custom attribute

Getting the value of a custom attribute

Hi,

I'm using the jquery in place editor, and I need to get the value of a custom attribute in order to send it with the form. The jquery i have is as folder... (the bit i'm having trouble with is highlighted)
  1. $(".edit").editInPlace({
  2.         url: "./server.php",
  3. params: "folder=" + $(this).attr('folder')

  4.         //show_buttons: true
  5. //$('.edit').attr('folder')
  6.     });
and the html is as follows:
  1. <span class="edit" folder="folderName">text to edit</span>
As you can see, i need to get jquery to get the attribute 'folder' value, in this case the value returned would be 'folderName'

Many thanks for any help :-)