MAMABA / editstrap

Make editable field using jquery and bootstrap
http://www.editstrap.com
12 stars 1 forks source link

afterChangeFired not fired #38

Closed seyaobey closed 7 years ago

seyaobey commented 7 years ago

I have written this related stackoverflow question . I thought also to write it here maybe to your attention. I am intending to get this library and now I am testing it (trial) . afterChangedValue is not fired on successful value change. This is my code (very simple): `$('#txt-control').editstrap({

type: 'text',
emptyText: 'Enter your name' ,
afterChangeValue: function(editable,newValue){
     alert('Value has successfully changed');            
}

})`

Another thing is that when I use the getValue method, I get an object and not the value:

$('#txt-control').editstrap('getValue') --> returns object

I have made sure that jquery is properly loaded and alsothe editstrap.js library

Obviously there is something I am missing here. And your help would be greatly appreciated

MAMABA commented 7 years ago

Hello,

What version of Editstrap do you use? Can you please post your html and javascript code?

Thanks and regards,

seyaobey commented 7 years ago

Thanks for the answer. I just purchased the Developer License. And now it is working. I guess there might be some limitations on the trial version. Great library by the way.

MAMABA commented 7 years ago

OK. please feel free to contact me if you need any help.