How to disable / enable the button? which is not in form, in navBar. I tried a few examples, all failed.
I am changing the text textarea $("textarea").val(x);The text is changing, the problem is that it does not get auto-resized, I see an ugly scroll bar on the side, if I manually resize it, itβs OK ... there is a way to force an update or something like that ?
thank
Update (TextArea):
If I click on a text area and then press any key -> it opens as it should, I try to simulate it .. but it fails, the binding works, but the trigger for keypress / keydown does not, I tried some codes from googling, this should work I think mayb for nomral jQuery 1.6 but not jQuery mobile. My tests on Chrome and iPhone 4
$('#textarea').bind('click', function() {
var e = jQuery.Event("keypress", { keyCode: 64 });
$(this).trigger( e );
});
Zakos source
share