joshnakarepati — 2013-02-21T00:40:10-05:00 — #1
Hi all !! I have an application where i show the request in Accept ,user name and reject buttons created dynamically.But my problem is after the button is clicked ,the accept
name and reject should be hide.I used .hide() but since the buttons are created dynamically i dont know the id's.
pullo — 2013-02-21T00:46:08-05:00 — #2
Welcome to the forums
Would it not be possible to wrap the buttons in a div or span element (which you could give an ID to) then hide that instead.
If this doesn't work for you, could you post a link to the page in question and I'll have a closer look.
joshnakarepati — 2013-02-21T00:53:52-05:00 — #3
hi thank you for the reply,
I am putting the buttons in a div only.But i dont want to hide the whole div,just the button and related text (Accept joshna Reject).The remaining requests should not hide.Like in facebook !
pullo — 2013-02-21T01:21:48-05:00 — #4
You could select all the buttons based on a parent element (e.g. the div or in the form), then hide/show them based on another attribute, e.g. their name or their text.
If you would like any help with this, can you post a link?
system — 2014-10-07T23:45:30-04:00 — #5
This topic is now closed. New replies are no longer allowed.