i want to comment a code block, but i have a line in my javascript block which has jquery and php both
like this
jq('.time_slot').each(function(index) {
var a = jq(this).autocomplete({
serviceUrl:"<? echo $this->config->item('base_url'); ?>business/information/add/autocomplete",
params: { suggessions_id:28767 }, //aditional parameters
onSelect:function(value,data){ jq(this).trigger('change'); }
});
});
with out this line
serviceUrl:"<? echo $this->config->item('base_url'); ?>business/information/add/autocomplete",
i can comment this block using
/*
*/
but now i can not use it , also i tried with single line comments , like this
//jq('.time_slot').each(function(index) {
//var a = jq(this).autocomplete({
//serviceUrl:"<? echo $this->config->item('base_url'); ?>business/information/add/autocomplete",
// params: { suggessions_id:28767 }, //aditional parameters
// onSelect:function(value,data){ jq(this).trigger('change'); }
// });
// });
but for this line
serviceUrl:"<? echo $this->config->item('base_url'); ?>business/information/add/autocomplete",
it is not working .
so i ended up with a very odinary solution like this
//serviceUrl:"
<? //echo $this->config->item('base_url'); ?>
//business/information/add/autocomplete",
what is the best way to comment my code block , thank you in advance .