1

自分が書いたのではない子チェックインシステム用の検索ボックスが2つあります。入力ボックスをjqueryオートコンプリートにアップグレードしました。それらは機能します。名前で検索してから、ID番号を入力します。

しかし、「確認」をクリックすると、一人一人の写真が表示されますが、大人には何も起こりません。アダルトフィールドはオプションで、2番目のフィールドです。これが私の問題だと思います。

更新:最初のオートコンプリートボックス「子」をコメントアウトし、10人が大人を放っておくと、機能します。実際のオートコンプリート部分をスキップして、ボックスに数字を入力するだけで、同じエラーが発生します。

<form method="post" action="Checkin.php" name="Checkin">
<input type="hidden" name="EventID" value="<?php echo $iEventID ; ?>">
    <table cellpadding="0" cellspacing="0" width="100%" align="center" border="1">
    <tr>
    <td>
        <caption>
            <h3><?php echo gettext("Add Attendees for Event: $event_title"); ?></h3>
        </caption>
    </td>
    </tr>
    <tr>
    <!-- Right Side new searchbox here-->
        <td width="33%" valign="top" align="right">

        <head> 

        <script type="text/javascript" src="jquery/js/jquery-1.4.2.min.js"></script> 
        <script type="text/javascript" src="jquery/js/jquery-ui-1.8.2.custom.min.js"></script> 
        <script type="text/javascript"> 

                    jQuery(document).ready(function(){
                        $('#child').autocomplete({source:'suggestname.php', minLength:2});
                        $.noConflict()
                    });

        </script> 
        <link rel="stylesheet" href="jquery/css/smoothness/jquery-ui-1.8.2.custom.css" /> 
        <style type="text/css"><!--

                        /* style the auto-complete response */
                        li.ui-menu-item { font-size:12px !important; }

        --></style> 
            </head>

        <form onsubmit="return false;"> 
        Enter a name:
        <input id="child" type="text" name="child" /> 
        </form> 



        </td>
    <!-- Middle -->
      <td width="33%" valign="top" align="center">
            <input type="submit" class="icButton" <?php echo 'value="' . gettext("Verify") . '"'; ?> Name="Verify" onclick="javascript:document.location='Checkin.php';">
            <input type="submit" class="icButton" <?php echo 'value="' . gettext("Back to Menu") . '"'; ?> name="Exit" onClick="javascript:document.location='Checkin.php';">
            <input type="button" class="icButton" <?php echo 'value="' . gettext("Add Visitor") . '"'; ?> name="Add" onClick="javascript:document.location='PersonEditor.php';"></td>
    <!-- Left Side -->
        <td width="33%" valign="top" align="left">


            <head> 

            <script type="text/javascript" src="jquery/js/jquery-1.4.2.min.js"></script> 
            <script type="text/javascript" src="jquery/js/jquery-ui-1.8.2.custom.min.js"></script> 
            <script type="text/javascript"> 

                jQuery(document).ready(function(){
                    $('#adult').autocomplete({source:'suggestname2.php', minLength:2});
                    $.noConflict()
                });

            </script> 
            <link rel="stylesheet" href="jquery/css/smoothness/jquery-ui-1.8.2.custom.css" /> 
            <style type="text/css"><!--

            /* style the auto-complete response */
            li.ui-menu-item { font-size:12px !important; }

                --></style> 
            </head> 

            <body> 

            <form onsubmit="return false;"> 
                Enter a name:
                <input id="adult" type="text" name="adult" /> 
            </form> 

            </body>


        </td>
    </tr>
    <tr>
        <td width="33%" align="right">
        Child's Name
        </td>
        <td width="33%" valign="top" align="center">
        </td>
        <td width="33%" valign="top" align="left">
        Adult's Name
        </td>
    </tr>
    </table>
</form>
4

2 に答える 2

0

あなたが提供したhtmlはすべてめちゃくちゃです-体は頭の上にあるべきではありません!。基本を学ぶためにこれまたはこれをチェックしてください。

ここに画像の説明を入力してください

于 2013-02-27T14:53:59.893 に答える
0

有効なhtmlページから始める必要があります。

いくつかの例:

  • あなたは<head>それらが許可されていない場所のいたるところに要素を持っています。
  • <body>許可されていない要素があります。
  • フォームタグをネストしました(これも許可されていません)。
于 2013-02-27T14:54:09.347 に答える