[eluser]alberta[/eluser]
hello,
I have problem using javascripting code in codeigniter.
i have to delete an entity in table. for this i've written this code .
I have js file named confirm.js
Code:
<js>
$(document).ready(function(){
$(".confirmClick").click( function() {
alert("hello");
if ($(this).attr('title')) {
var question = 'Are you sure you want to ' + $(this).attr('title').toLowerCase() + '?';
} else {
var question = 'Are you sure you want to do this action?';
}
if ( confirm( question ) ) {
[removed].href = this.src;
} else {
return false;
}
});
});
</js>
then in my view file i've added this line
Code:
<a href="projects/projects_delete/{id}" class="confirmClick" title="Delete this project">Delete</a>
in header file i've also added this
[removed][removed]
but when i click on delete, it doesn't ask for confirmation and it redirects to next page just

Can some one tell me where is the mistake or i've omitted some step.
Thanks in advance