Edit in place
Posted: Fri Dec 21, 2012 4:36 am
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:
can you help me please where is the problem?
thanks
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:
and the javascript:<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 don't work.$(".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; },
});
}
});
can you help me please where is the problem?
thanks