I'm new to jQuery. I have this button #sess_s which should execute three click handlers. It works fine usually, but sometimes it will miss one or two click handlers. I want all three to work together when clicked. Any easy way? Thanks.
My code:
$('#sess_s').click(function() {
$.post('sdata.php',{id_value: id_form.id_data.value },
function(output) {
$('#sess_feed').html(output).show();
});
});
$('#sess_s').click(function() {
$.post('ssdata.php',
function(output) {
$('#sess_feed1').html(output).show();
});
});
$('#sess_s').click(function() {
$.post('ses_count.php',
function(output) {
$('#ses_count').html(output).show();
});
});
.postas a variable name? What happens if you change the name to something likepostClass?$.postis a function of the jQuery framework.