Welcome Guest, Not a member yet? Register   Sign In
Weird jQuery problem
#1

[eluser]nZac[/eluser]
Code:
$(document).ready(function(){
        
        $('#useSMS').click(function(){
            alert('hello');
        });
    });

<p>&lt;input id="useSMS" type="radio" class="right contact_radios" name="contactmethod" value="sms"&gt; SMS</p>

The alert box shows in Chrome but no other browser. I am using FireFox 3.5.8 to test in FF and 7 for IE.

Any thoughts?
#2

[eluser]Mat-Moo[/eluser]
Got a test page?
#3

[eluser]danmontgomery[/eluser]
Works fine for me in all browsers...
#4

[eluser]nelson.wells[/eluser]
Probably what is happening is another javascript call is producing an error and then preventing the rest of the script from executing in FF and IE, but Chrome is chugging right along. That would explain that behavior. Look at it through Firebug and see what is happening.
#5

[eluser]evolutionxbox[/eluser]
Is javascript enabled in those browsers?

Sometimes I forget to turn javascript back on in Firefox when using web developer toolbar.
#6

[eluser]mattpointblank[/eluser]
Maybe make sure to close your input tag (&lt;input type="text" /&gtWink
#7

[eluser]nZac[/eluser]
I think I got it working. nelson.wells had the correct answer, there was another JavaScript error.




Theme © iAndrew 2016 - Forum software by © MyBB