views:

18

answers:

1

Okay, i posted a question before to fix my live validation contact form. Now the form athentication is working perfectly but my jquery hover menu effects are going, on other pages menu is working but not on the contact form page..

here is the link to check it online link text

is there any conflict between these two functions.....

    <script type="text/javascript">         
$(function() {
// set opacity to nill on page load
$("ul#menu span").css("opacity","0");
// on mouse over
$("ul#menu span").hover(function () {
// animate opacity to full
$(this).stop().animate({
opacity: 1
}, 'slow');
},
// on mouse out
function () {
// animate opacity to nill
$(this).stop().animate({
opacity: 0
}, 'slow');
});
});

//]]>

</script>

 <script type="text/javascript">
//<![CDATA[
$(function() {

    var LV_Name = new LiveValidation('name',{onlyOnSubmit: true });
    LV_Name.add(Validate.Presence);

    var LV_Email = new LiveValidation('email', {onlyOnSubmit: true });
    LV_Email.add(Validate.Presence);
    LV_Email.add(Validate.Email);

    var LV_Cap = new LiveValidation('cap',{onlyOnSubmit: true });
    LV_Cap.add(Validate.Presence);
    LV_Cap.add( Validate.Numericality, { is: 4 } );

    var LV_Message= new LiveValidation('message', {onlyOnSubmit: true });
    LV_Message.add(Validate.Presence);

    var service = new LiveValidation('service' , {onlyOnSubmit: true });
    service.add( Validate.Exclusion, { within: [ 'None' ] } );


            });

</script>       
+1  A: 

There are no span's anywhere in ul#menu on the contact page, there are span's on the other pages

About page

<li><a class="contact" href="contact.html"><span style="opacity: 0;"></span></a></li>

Contact Page

<li><a class="contact" href="contact.html"/></li>
danrichardson
oh no, i think this is some kind of bug in Dreamweaver CS5, whenever i am working on dreamweaver and my computer shutdown due to electricity outage, it removes my span ids.......
Muhammad Ahsan
Great work, i never thought about this....
Muhammad Ahsan
i got it now, that i used HTML tidy to cleanup my HTML code and it removed my span ids as they were in the warning list of validations
Muhammad Ahsan