Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ***************************************
- PART 2 - JQUERY AJAX:
- ***************************************
- var parsedData = JSON.parse(data);
- var buildproject = parsedData.buildproject;
- var prospectstrength = parsedData.prospectstrength;
- if (buildproject == null){
- //jQuery applied here.
- }
- else{
- //jQuery applied here.
- }
- if (!$.trim(prospectstrength)){
- //jQuery applied here.
- }
- else{
- //jQuery applied here.
- }
- ***************************************
- PART 1 - PHP:
- ***************************************
- $myArray = array("buildproject" => $buildproject, "prospectstrength" => $prospectstrength);
- echo json_encode($myArray);
Advertisement
Add Comment
Please, Sign In to add comment