1

I'm having trouble getting style attributes from jQuery with Firefox.

My file...

<html> <head> <script type="text/javascript" src="jquery-1.10.1.js"></script> </head> <body> <script type="text/javascript"> function search() { alert($("#namesearch").css("border-style")); } </script> <input style="border-style:solid" id="namesearch"> <input type=button onclick="search();" value="Search"> </body> </html> 

In Chrome 27.0.1453.116 m and Internet Explorer 8, I get an alert that says "solid".

In Firefox 22, I get a blank alert.

1

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.