code correction help

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.
avatar
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