Ext.query help
What I have so far is:
Ext.onReady(function() {
formElem = Ext.query("form[onSubmit]");
if (formElem) {
alert("YES");
} else {
alert("NO");
}
});
But it is always returning yes. I read the API docs and some tutorials and tried curlys as well with no luck.
Any help is appreciated. Also if someone can point me to an API doc on adding an attr to a tag I would be very thankful as I could not find it.
Thanks!
Jim
Thank you...I did discover that and was about to post that....thank you though...very much appreciated. How would I go about adding an onSubmit attribute to the form tag? I see appending...but not sure how to use that when working within a tag.
THanks!
Jim