小编Gop*_*oft的帖子

如何使用jqueryui对话框按钮提交表单,

我想使用jqueryui按钮提交表单.我有一些代码,但它不起作用.这是代码:

<script type="text/javascript">
function findUrls()
{
    var text = document.getElementById("text").value;
    var source = (text || '').toString();
    var urlArray = [];
    var url;
    var matchArray;

    // Regular expression to find FTP, HTTP(S) and email URLs.
    var regexToken = /\b(http|https)?(:\/\/)?(\S*)\.(\w{2,4})\b/ig;

    // Iterate through any URLs in the text.
    if( (regexToken.exec( source )) !== null )
    {
    show_box();// this will show jquery dialog..
    return false;
    }

}

</script>

<div id="dialog" title="Dialog Title">
<p>Dialog box text.....Dialog box text....Dialog box text</p>
<button id="formSubmit">Click me</button>
</div> …
Run Code Online (Sandbox Code Playgroud)

html javascript jquery jquery-ui javascript-events

3
推荐指数
1
解决办法
3万
查看次数

标签 统计

html ×1

javascript ×1

javascript-events ×1

jquery ×1

jquery-ui ×1