Home > Web Front-end > HTML Tutorial > Toolstip of jq ui I just want input to have prompt_html/css_WEB-ITnose

Toolstip of jq ui I just want input to have prompt_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:24:46
Original
1130 people have browsed it


As the title says, I just want a hint,

$(document input).tooltip(); Is it possible to write it like this? What should I do?

    <script type="text/javascript" src="/Scripts/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js"></script>    <link rel="stylesheet" type="text/css" href="/Scripts/jquery-ui-1.10.3.custom/css/ui-lightness/jquery-ui-1.10.3.custom.css" />    <script type="text/javascript">        $(function () {            $(document).tooltip();        });    </script><input type="submit" value="搜索(S)" accesskey="S" title=“test”>
Copy after login



Reply to discussion (solution)



Just after asking, I thought of a way

    <script type="text/javascript">        $(function () {            $(document).find("input").tooltip();        });    </script>
Copy after login

The selector is not written correctly

The selector is not written correctly

What you are talking about is this $(document input).tooltip( );?

$(document).tooltip();

If you write like this, you are adding a tooltip to the entire document. You need to narrow the scope.

$('input' ).tooltip();

$(document).tooltip();

If you write like this, you are adding a tooltip to the entire document. You need to narrow the scope.

$('input').tooltip();

Oh, thank you very much!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template