[jQuery] Trouble with .children in IE

[jQuery] Trouble with .children in IE


I've a peice of code that is working fine for me in FF but errors out
in IE 6 and 7.
I'm using the impromptu and corner plugins, although I don't think the
error is related to them.
<script type="text/javascript">
                    availpoints = 500;
                    $(document).ready(function() {
                        if ( $('.spendlogo').length ){
                            $('.spendlogo').click(function(){
                                reward = Number($(this).attr('reward'));
                                redeemtxt = 'How many points would you like to redeem?<br /