0

How two AJAX functions can be called on an event of a control?
I am using check box, on checked/unchecked I want to populate combobox and want to show records in a DIV..
Please give complete code ..

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by ko ko
1

Please give complete code ..

We don't, generally. But as a start:

document.getElementById('the_id').onclick = function() {
  some_ajax_call();
  another_one();
};

By the way, this is a javascript question, mostly.

Edited by twiss: n/a

0

We don't, generally. But as a start:

document.getElementById('the_id').onclick = function() {
  some_ajax_call();
  another_one();
};

By the way, this is a javascript question, mostly.

Here is the code.. How I can implement below into above code..

<td style="width: 25px"><input type="checkbox" name="inactive" id="inactive" onclick="checkbox();showUser(myform.elements['inactive'].value);" value="<?php if(isset($_POST['inactive'])) echo $_POST['inactive']; ?>"></td>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.