News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Weird textarea bug

Started by CyanGaming, August 22, 2018, 11:45:11 AM

Previous topic - Next topic

CyanGaming

help help help

I'm using the global headers and footers modification.
I used a jquery script to insert a new textarea on some different page. For some reason the textarea in the global headers and footer decided that it would end where I put </textarea> in the jquery script. Now everything that came after the </textarea> part has leaked out of the textarea as raw text.

WHY did this happen and how do I fix it. Please help.

Kindred

why did it happen?   Obviously, because your code is wrong... :P

How to fix it?
Fix the code.

Without SEEING the actual code, we can't help you much more than that.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

CyanGaming

Well I described it exactly as you need it. Just do:

$("body").after("<textarea></textarea>");

and then write some code after that and it breaks.

Gwenwyfar

Inserting html outside the body is not valid markup. Use append instead.
"It is impossible to communicate with one that does not wish to communicate"

CyanGaming

Quote from: Gwenwyfar on August 22, 2018, 06:26:57 PM
Inserting html outside the body is not valid markup. Use append instead.
that's not what I meant

Kindred

which is why you need to show us the ACTUAL and ENTIRE code...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: