I know it may look wierd but everything works fine except the bit where iam tryin to grab the id and attach it to the [name=checkme]
How do i go about formatting that line so that the id will be recoginsed.
$('input:checkbox[name=checkme'+id+']').attr('checked',"");
It wont work as is but if i remove the +id it works and unchecks all checkboxes.
Hope that makes sense 🙂
Here is my code:
<script type="text/javascript">
function deleterow(id) {
var txt = $.ajax({
(do stuff here)
}).success
$('input:checkbox[name=checkme'+id+']').attr('checked',"");
}
</script>
1 Answer