Search code examples
jquerydestroy

How do I add a destroy method in jQuery CoolInput?


I am looking at: CoolInput, but I need a destroy method.

I want to be able to do something like this:

$('#manualhint2').coolinput('foobar');

but I also need a method like:

$('#manualhint2').coolinput(destroy);  

or something like that, because there are times when I need to disable CoolInput.

Can somebody please help me?
Or, you can also recommend another jquery hint library that has a destroy method.

Thanks!


Solution

  • Have you tried

    $('#manualhint2').coolinput(''); 
    

    ?