Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery tooltip on form elements style not displayed
    text
    copied!<p>I implemented tooltips based on <a href="http://jquerytools.org/demos/tooltip/form.html" rel="nofollow">this</a>. I see tooltip but without style. It seems that what is in style sheet does not work properly.</p> <p>My code:</p> <p><strong>JS</strong></p> <pre><code> // select all desired input fields and attach tooltips to them $("#edit_foto_form :input").tooltip({ // place tooltip on the right edge position: "center right", // a little tweaking of the position offset: [-2, 10], // use the built-in fadeIn/fadeOut effect effect: "fade", // custom opacity setting opacity: 0.7 }); </code></pre> <p><strong>CSS</strong></p> <pre><code>/* simple css-based tooltip */ .tooltip { background-color:#000; border:1px solid #fff; padding:10px 15px; width:200px; display:none; color:#fff; text-align:left; font-size:12px; /* outline radius for mozilla/firefox only */ -moz-box-shadow:0 0 10px #000; -webkit-box-shadow:0 0 10px #000; } </code></pre> <p><strong>HTML</strong></p> <pre><code>&lt;div id="content"&gt; &lt;h1 class="top"&gt;Update Foto&lt;/h1&gt; &lt;form action="" method="post" id="edit_foto_form" enctype="multipart/form-data"&gt; &lt;input type="hidden" name="action" value="update_foto" /&gt; &lt;label for="file"&gt;Foto:&lt;/label&gt; &lt;input type="file" name="fotofile" id="fotofile" title="Bitte Foto 100 x 100, größere werden angepasst."&gt;&lt;br&gt; &lt;span&gt;&lt;/span&gt; &lt;br /&gt; &lt;label&gt;&amp;nbsp;&lt;/label&gt; &lt;input type="submit" value="Hochladen" /&gt; &lt;br /&gt; &lt;/form&gt; &lt;/div </code></pre> <p>Any idea what can be wrong?</p> <p>Jquery added to Head section of doco:</p> <pre><code>&lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/redmond/jquery-ui.css" /&gt; &lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"&gt;&lt;/script&gt; &lt;script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"&gt;&lt;/script&gt; &lt;script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/additional-methods.min.js"&gt;&lt;/script&gt; &lt;script src=http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/localization/messages_de.js"&gt;&lt;/script&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload