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)
- $(".edit").editInPlace({
- url: "./server.php",
- params: "folder=" + $(this).attr('folder')
- //show_buttons: true
- //$('.edit').attr('folder')
- });
and the html is as follows:
- <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 :-)