jquery - Title not appearing in firefox -
i found this jsfiddle makes title of object appear in firefox. not familiar jquery, how can modify snippet if have div object , not input?
the snippet:
<input type="button" value="click me" title="foobar"/> if ($.browser.mozilla) { $("input").each(function() { var input = $(this); var title = this.title; var div = $("<div>"); div.attr({ "class": "disabledbuttondiv", "faketitle": title }); input.wrap(div); this.title = ""; }); }
my line:
<div class="ttt" title="cancel" id="<?php echo $row2[$c][10]; ?>" onclick="cancelad(this)"></div>
i changed input div , class ttt didn't help.
simply change jquery code like:
if ($.browser.mozilla) { $("div").each(function() { var input = $(this); var title = this.title; var div = $("<span>"); div.attr({ "class": "disabledbuttondiv", "faketitle": title }); input.wrap(div); this.title = ""; }); }
Comments
Post a Comment