视频1 视频21 视频41 视频61 视频文章1 视频文章21 视频文章41 视频文章61 推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37 推荐39 推荐41 推荐43 推荐45 推荐47 推荐49 关键词1 关键词101 关键词201 关键词301 关键词401 关键词501 关键词601 关键词701 关键词801 关键词901 关键词1001 关键词1101 关键词1201 关键词1301 关键词1401 关键词1501 关键词1601 关键词1701 关键词1801 关键词1901 视频扩展1 视频扩展6 视频扩展11 视频扩展16 文章1 文章201 文章401 文章601 文章801 文章1001 资讯1 资讯501 资讯1001 资讯1501 标签1 标签501 标签1001 关键词1 关键词501 关键词1001 关键词1501 专题2001
jquery学习
2025-10-02 04:42:11 责编:小OO
文档
替换标签内容

替换html内容

function replaceHtmlContent(){

 var spval=$("#sp").html();//得到id=sp里面的内容

 alert(spval);

$("#sp").html("another content");//替换里面的内容

}

 id="sp">ewr

replaceHtmlContent()

我曾经用上面的方法做js不刷新相册

表单提交

if($_POST['user']!=null){

     echo $_POST['user']."tijiao";exit;

 }

?>

UI

可移动层

 id="draggable" class="ui-widget-content">

    

Drag me to my target

可拖拉层

    

    #resizable { width: 150px; height: 150px; padding: 0.5em; }

    #resizable h3 { text-align: center; margin: 0; }

    

 id="resizable" class="ui-widget-content">

    Resizable

SelectItem

    

    $(function() {

        $("#selectable").selectable();

    });

    

    Item 1

    Item 2

    Item 3

    Item 4

    Item 5

    Item 6

    Item 7

时间框

Date: 

Dialog

1,默认弹出

This is the default dialog which is useful for displaying information.

2,点击弹出

http://jn.orz.hm/jquery/ui_effect.html 这个网站有show: 'blind',这些属性

 id="dialog" title="Basic dialog">

    

This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.

Open Dialog

带按钮事件框

 id="dialog-message" title="Download complete">

    

         class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;">

        Your files have downloaded successfully into the My Downloads folder.

    

    

        Currently using 36% of your storage space.

    

Open Dialog

选项卡TAB

 id="tabs">

    

            

  • Nunc tincidunt
  •         

  • Proin dolor
  •         

  • Aenean lacinia
  •     

     id="tabs-1">

        

Proin elit arcu, rutrum commodo, vehicula tempus, 

    

     id="tabs-2">

        

 eu ornare leo nisi vel felis. Mauris tortor et purus.

    

     id="tabs-3">

        

 Vivamus a libero vitae lectus hendrerit hendrerit.

    

下载本文
显示全文
专题