hi guys this is mi first post i been reading a book of jquery just for about two days, i think mi first issue is pretty simple so i think to ask u guys here.
i want a hidden div that will have a html form for login,
and i have a link i want when the user click the link the div appear above the link so the user can log in
i have this code (im using Codeigniter framework i think it has nothing to do )
- <div id="loginControl" >
- <?php
- echo form_open('login/validate_credentials');
- echo form_input('username','Username');
- echo form_password('password','Password');
- echo form_submit('submit','Login');
- // echo anchor('login/signup','Create Account');
- echo form_close();
- ?>
- </div>
- <a href="#" id="login">Login</a>
( i dont know if i can apply an id to a link)
and this is mi Jquery script and i know im wrong :P so im asking for suggestions ty
- $(function(){
- $('login').click(function (){
- $('#loginControl').fadeIn('fast');
- });
- });
i want the login link to be the only that launch the jquery event and show my loginControl Div
im sure it can be done but im certain not this way
ty and sorr for the problem