Have you ever get a problem on append some text in an element while you don't want to append it if that element already has contained it using jquery??. If so the following is algorithm to solve that :
- find element that contains text
- check whether that element length more than 0 or not
- if yes then append text
- if not just leave it
No comments:
Post a Comment