While passing parameter in grails with Ajax ,parameter with special character (&) splits and not pass completely as i required to pass to the controller.Here in department, there is drop down list of department with special character.when i click the department it split and only before the special character it passes .but i requires all list name with special character.
var parameter = "searchPatientString="+searchPatientString+"&type="+type+"                 &searchPatientId="+searchPatientId+"&department="+department;
                 $.ajax( {
                url: "${createLink(controller: 'allPatient', action:'patientDeptList')}",
                type : 'post',
                data : parameter,
                success : function( resp ) {
                    if(resp=="noValue"){
                        $('#msg').show();
                    }