Monday, 18 September 2017

javascript - CSS, Java script not working properly after ajax call in php



I have called an ajax function in php page which works correctly and gives output as per requirement, but after ajax call, it does not return default css and javascript property to the Input type select,



Following is the code i have used for ajax call






it is returning ajaxpage.php in output, now i have one dropdown in the ajaxpage.php page , which is using choosen.css, choosen.js and multiselect.css as well as multiselect.js, but this dropdown is not working correctly and none of above css and js are working correctly because of above ajax page call, i have applied all the css and js in main page, please help me to solve this problem.


Answer



You can try using $.ajax




Below I have used your function name instead you can do in on an click/ change event. IF theResponse, the output of ajaxpage.php is the select box itself you can display it in a div in your parent page



Note: Didnt tested the code below








No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...