is there a way to reset/update an after()
element? Not add another after()
text. Thank you
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- jQuery add and remove delay
Does after have a callback parameter? If so you can use that to call a function with what you'd want to do.
Your question is not clear. I'll asume you want to modify an element added with
.after()
Instead of doing this:
You could do this (use
insertAfter
)Hope this helps. Cheers.
When you add the element, give it a name
Then, when you want to change it, simply remove the previous one first
You can write a function that uses
.data()
to remember the new element as such: (I would change the names a bit though)Then you can use
And the second one will replace the first
Maybe this will helpful.
(Controller function for Emptiness of Form to be sent Server Input parameter ID of Form Parent DIV, output is 1-true, 0 false)