2011-08-10

Jquery : hide submit until OK button clicked


When you register to some web, you will notice.. if you don't click I accept.. You can't continue.

This basicly the same, but I use button not checkbox. The difference here, I hide submit and then with button (I Agree), the button will show up. And then after that the user can click submit

But since hacker and Cracker are always attacked my site/blog, I always have to think this script problem.. And the problem is..
if the site open with no css.. in FF click View Menu | Page Style | no Style.. You can see the submit
if the site not active the javascript. The file will fail!!

The fixed will type later.. Hey.. you can be great webmaster if you learn from error!! Sory the script type using Indonesian Languages

<style>#lanjut{
 
display:none;
}
</
style>name: <input type=text>
<
br>Do you accept the rule?
 <
input type=button
       id
='terima' value='YES' />
<
div id='lanjut2'>
 <
input
      type
=submit
           id
='lanjut' />
</
div>
<
script>
    $(
"#terima").click(function(){
        $(
"#lanjut").show("fast");
    });
 

</script>



Tidak ada komentar: