Jquery and PHP. Seems not working to trigger some of the elements -


i have jquery , in case want process click of user display right content them through $.post method of jquery. want want access appended html tags on put-content through jquery too. sorry bad english.,

$(document).ready(function(){     var j = jquery.noconflict();      j('.menus ul li a').on('click', function(){         var val = j(this).attr('id');         if (val != undefined) {             j.post('content_process.php', { id_attrib: val }, function(response) {                 if (val == 'job-application') {                     j('#put-content').empty();                     j('#put-content').append(response);                     j('#put-content #time-container').click(function() {                         alert('naa');                     });                 }                 else if (val == 'profile') {                     j('#put-content').empty();                     j('#put-content').append(response);                 }                 else if (val == 'manage-resume') {                 }             });         }     }); }); 

php file content_process.php

$postvalue = $_post['id_attrib'];  if ($postvalue == 'job-application') {     include_once('include/job-application.php'); }  else if ($postvalue == 'profile') {     include_once('include/main-profile.php');    } else if ($postvalue == 'manage-resume') { } 


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -