The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

code correction help

Go down

code correction help Empty Re: code correction help

Post by Ultron's Vision 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
Ultron's Vision
Forumember

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

http://duelacademy.net

Back to top Go down

Back to top


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