View Full Version : simple button not working in firefox

Apr 23rd, 2008, 07:19 AM
i have this simple button , it is working on IE and opera but not in firefx


<style type=text/css>

#tick { align: center;

display: none;

margin - top :0px;
margin - left: 30px;



<input type="submit" value="Send" onClick ="



<div id = 'tick'><img src = 'tick2.gif'> </div>


Apr 23rd, 2008, 07:21 AM
change type (on the input) to button

Apr 23rd, 2008, 07:59 AM
i tried that as well,

I think alert() was not working in firefox due to some reason , if i remove alert() then the code below executes , don't know why

Apr 23rd, 2008, 08:02 AM
if it has the literal line break, firefox is probably erroring on "unterminated string constant" condense the tag to a single line if it isn't already.