jquery - hiding a previous input button -
I have a php code that executes a loop in which it creates the following:
echo "& lt; input type = \" button \ "event = '$ eventID' id = \" sendsomeone \ "value = \" send a family member \ "/ & gt;"; Echo "& lt; span id = '$ eventID' & gt; & lt; / span & gt;"; Later, I have JavaScript that is low:
$ ('Input: Button'). Click (function () {$ (this) .next ("span") attachment ('you clicked this button!');} This code works fine But I want to hide this button too ( $ (this) .Parent ("Input"). Hide (); < / Pre> and $ (this) .prev ("Input"). Hide (); But I can not understand how to work it.
It looks like you already have the $ ('input: button') button selector, so do you do it Have tried? $ (this) .hide ();
Comments
Post a Comment