Preplaces in IE
Preplaces in IE
Hello everyone!
I'm pretty new to jquery, so I guess, this board is the right one to place my problem.
I made a little script where I'm replacing all the spaces " " with the html-code % 20 (without the space). Have to do it for maillinks to work right.
The Script looks like this:
- <script>
- $().ready(function () {
- $("a#sendamail").attr("href", $("a#sendamail").attr("href").replace(/ /g, "% 20"));
- });
- </script>
It works in every browser (tested with Firefox, Safari, Opera, Chrome), except Internet Explorer. Anyone may know what to do to make it run in IE too?