Hi guys, I have a two functions in ajax; say for example the functions are...function AB() and function BC in my form I have a this textbox which calls the function AB() through onKeyUp event. I successfully made calling the said function, but what if I'll be calling the two function in a single event, is that possible?

Recommended Answers

All 4 Replies

Are you talking about something like this?

<html>
<head>

<script>
function AB() {
	alert("Ran function AB()");
}
function BC() {
	alert("Ran function BC()");
}
</script>

</head>
<body>
<form>
	<input type="text" onkeyup="AB();BC();"/>
</form>
</body>
</html>

The previous example will work.

Hi itsjareds, yes that's what I'm talking about.

Oh.. well that code I posted above does what you need.

Is your question solved?

Hi guys, I have a two functions in ajax; say for example the functions are...function AB() and function BC in my form I have a this textbox which calls the function AB() through onKeyUp event. I successfully made calling the said function, but what if I'll be calling the two function in a single event, is that possible?

Javascript, not AJAX. AJAX is something that can be done with Javascript. Javascript is the language.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.