Page 1 of 1

Edit in place

Posted: Fri Dec 21, 2012 4:36 am
by fabby
Hello.
I use this script: http://code.google.com/p/jquery-in-place-editor/ and i have a problem that i don't know how to edit to forms (a textinput and a selectbox)
I tried somethink like this:
<div class="rc_keywords_locations">
<span class="rc_keyword">seo77</span>,
location <span class="rc_location0">Berlin</span>
</div>
<div class="rc_keywords_locations">
<span class="rc_keyword">aaa</span>,
location <span class="rc_location1">Berching</span>
</div>
and the javascript:
$(".rc_keyword").editInPlace({

callback: function(unused, enteredText) {
return enteredText;
},
// url: './server.php',
show_buttons: true,
preinit: function(unused, enteredText) {
console.log('da');
$(".rc_location0").editInPlace({
callback: function(unused, enteredText) { return enteredText; },
});
}
});
and don't work.
can you help me please where is the problem?
thanks