i would like use inline x-editable with button. Same like this sample http://jsfiddle.net/jjdJX/3/
if i use this with fix selectors like
$('#publicname-change').editable({
works fine.
but i have elements and there id's, they comes from database... and i can not say how much id's i have and what is there name. I use now a button .if i click this button (like in this sample) then i get also the id from this field what i need.
if is possible i can use $('#'+myselectorId).editable({
if the DOM load ok then i can find all there id's
if i klick on the button then i can get the ID from that editable field what i need.
normal i have to fix the selectors like
$('#username').editable({
type: 'text',
pk: 1,
url: '/post',
title: 'Enter username'
});
i looking for a way to call this editable by click on the button and with a dynamic id (selector) like this
$('#'+myselectorId).editable({
type: 'text',
pk: 1,
url: '/post',
title: 'Enter username'
});
sorry for my english..
best regards Juergen
Aucun commentaire:
Enregistrer un commentaire