hey guys
im just starting to fool around with jquery and discover its insane-ness. if any of you are familiar with it, please help me out with this.
I have a bunch of divs with the same class but a different id, each div contains a form that is styled to "display:none;" on load. on click of a link i need to display the form.
problem is onclick all of the forms for every div with this class is displayed. I dont understand how variables work with jquery, i never really understood javascript. i imagine ill have to use a variable to hold the id of the form where the link was clicked then use that variable to match it with the id on the form i want to display. but how do i actually write the code for this...
this is what im looking at now...
thanks!
im just starting to fool around with jquery and discover its insane-ness. if any of you are familiar with it, please help me out with this.
I have a bunch of divs with the same class but a different id, each div contains a form that is styled to "display:none;" on load. on click of a link i need to display the form.
problem is onclick all of the forms for every div with this class is displayed. I dont understand how variables work with jquery, i never really understood javascript. i imagine ill have to use a variable to hold the id of the form where the link was clicked then use that variable to match it with the id on the form i want to display. but how do i actually write the code for this...
this is what im looking at now...
Code:
$("div.delete a").click(function(){
$("div.imgeditform").slideToggle();
return false;
});
thanks!