I have a simple little mySql result page that displays the results using "for" statement into each own display div. Within the div is an "approve" , "edit" , and "delete" button - the approve and delete work fine BUT I want the edit button to slideToggle the edit page corresponding to that div and mySQl result. I have it partially working - click on edit - and ALL the edit div's slide open.... almost there?
I have a simple little mySql result page that displays the results using "for" statement into each own display div. Within the div is an "approve" , "edit" , and "delete" button - the approve and delete work fine BUT I want the edit button to slideToggle the edit page corresponding to that div and mySQl result. I have it partially working - click on edit - and ALL the edit div's slide open.... almost there?
Anywho here is the Jquery code:
Here is the display div:
Hopefully you get the idea I'm trying - excuse some of the inline styling - the section is in the development / testing / design stages.
Thanks in Advance!!!
$(document).ready(function() {
$(".guestbook_result .btn-edit").click(function(){
$(this).parents().children(".guestbook_edit").slideToggle("fast");
});
});
Me = Happy!
Ive just started learning today myself :) I even managed to build my first little site widget thing slider thing :)