The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.

Create a free forum like this one.

code correction help

View previous topic View next topic Go down

Re: code correction help

Post by Ultron's Vision on June 26th 2013, 2:41 pm

Theoretically, there is no actual mistake in the coding (just horrible indentation and spacing), just that you could change $('#submenu').html().replace() to $('#submenu').text().replace() to be sure that you are not overriding any HTML tag attributes.
Also, the regular expression's case-insensitive flag (next to the g) is unnecessary as punctuation characters have no cases.

Ultron's Vision

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

Back to top Go down

View previous topic View next topic Back to top

Permissions in this forum:
You cannot reply to topics in this forum