[jQuery] select events
[jQuery] select events
Hi,
I am writing an app that uses both jquery and regular javascript (is
this bad?).
I have two groups of jquery tabs, each with form fields in them.
I want a select list to trigger a specific tab if the value slected =
2;
Can you trigger jquery events from other javascript functions? If so,
how?
I figured it would be easier to do this within jquery. But I can't
get my jquery to work.
Here is what I have so far.
$('#hispeed_type').change(function(event) {
if(this.value == 2){
$('#containerA').triggerTab(4); // triggers third tab
}
});
The select list is #hispeed_type, if the select changes and its value
= 2, triggerTab 4 in div block #containerA.
Seems simple enough but I am getting an error that function triggerTab
does not exist.
Any help appreciated. Thanks,
Mike