jquery .html not working in firefox -
so have page have quote request form client.
the doc type
<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-us"> what doing is, generating forms submit button via jquery, if client browser has js disabled, submit button not appear.
the html follows.
<div id="buttonscript"> </div> jquery
<script type="text/javascript" > $(document).ready(function(){ $("#buttonscript").html('<input type=\"image\" name=\"submit\" src=\"<?=$img_dir?>/button-submit_off.png\" alt=\"submit\" class=\"nostyle\" style=\"margin-left:-4px;\" />'); }); </script> it works fine in browsers ff seems.
i have $(document).ready(function() { on page cause conflicts?
the second 1 invoke jquery.validate plugin on form.
update
tried removing escapes before ". didnt work. no errors in console far can tell. works fine everywhere ff.
update *i noob*
lol anyways, realized there had funky going on , considering know errors coming stating jquery undefined....then remembered .htaccess directive allowing scripts run same domain, , had been hosting jquery library, decided let google me.... in other words, there wasnt crap wrong of code...it server configuration.. figured out!
wondering why adding slashes double quotas while started single ones
'<input type=\" try remove slashes
Comments
Post a Comment