[eluser]InsiteFX[/eluser]
Try this.
Replace $ in scrpit tags with s
Code:
<$cript type="text/javascript">
$(document).ready(function(){
$("select").change(function () {
var country=$("#country").val();
//alert (country);
$.ajax({
type: "POST",
url: "<?php echo base_url('countries_json/post_action');?>",
// using the below code
url: base_url+"countries_json/post_action",
dataType: "json",
data: "country="+country,
cache:false,
success:
function(data){
$("#form_tag").html(data);
}
});
return false;
});
});
</$cript>
// You can also add this to your html document header section.
<head>
<$cript type="text/javascript" charset="utf-8">
//<![CDATA[
var base_url = "<?php echo base_url(); ?>";
var site_url = "<?php echo site_url(); ?>";
// ]]>
</$cript>
</head>
If you have removed index.php using .htaccess then you need to include index.php in your url links.