Bi Jing wrote:
Weird, Its working on my IE/FF
I'm working with FF 3.5.3 also
This is my JS code:
<script type="text/javascript">
$().ready(function() {
$('.corner').corner();
$('#paypal_form').validate({
rules: {
cc_number: {
required: true,
creditcard2: function() { return $('#cc_number').val(); }
}
}
});
$('#cc_type').change(function(){
$("#paypal_form").validate().element('#cc_number');
});
});
function doCopy(){
$("#billing_first_name1").val($("#shiping_first_name").val())
$("#billing_last_name1").val($("#shiping_last_name").val())
}
</script>
And the HTML code asociated to elements is this one:
<label for="same" class="first">My shipping address is also my billing
address <input type="checkbox" name="same" id="same" onclick="doCopy()"
/></label>
<label for="shiping_first_name" class="first">First Name:
<input type="text" name="shiping_first_name" id="shiping_first_name" />
</label>
<label for="billing_first_name" class="first">First Name:
<input type="text" name="shiping_first_name" id="billing_first_name" />
</label>
Do you get any js errors during viewing page.
Where I look for errors?
--
Saludos
ReynierPM