ajax load into ajax loaded page
we have a page with radio button and div with id=vijegiload (1.php)
if click on radio we have ajax load a dropdown list and
div with id=vijegiload2
from (2.php) with echo code that load in id=vijegiload in 1.php
now we have a dropdownlist and id=vijegiload2 that added in 1.php now how we can load another thing in id=vijegiload2 with ajax post
- $(document).on('change','[id^=vijegi]',function(){
- //radio button id=vijegi
- if(usr.length >= 1)
- {
- $("#vijegiload").html('<img src="loader.gif" align="absmiddle">loading');
- var xhr =$.ajax({
- type: "POST",
- url: "2.php",
- cache: false,
-
- data: "postvijegi="+ usr,
- success: function(msg){
-
- $("#vijegiload").ajaxComplete(function(event, request, settings){
-
-
-
- })
now i dont know why we can not use above code for 3.php to load data in
id=vijegiload2