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 ..

Recommended Answers

All 3 Replies

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.

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>

Move this to Javascript forum.

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.