I'm using the jQuery jeditable to edit a div on a web form. Anything I type into this field regardless of length gets sent to the javascript function without error. But if I copy/paste something instead of typing then the data is not passed to the function, and the field blanks out.
The html looks like this;
<div id="forcb1" class="hidden">
<div id="genComments" class="editGComms" onClick="getNetID();" > </div>
</div>
The function looks like this;
function getNetID(){
var netid=$("#idofnet").html().trim();
$(document).ready(function() {
$(".editGComms").editable("SaveGenComm.php", {
indicator : "Saving...",
tooltip : "Click to add...",
style : "inherit",
id : netid,
name : "newvalue"
});
});
}