2012-02-13 63 views
0

我使用jQuery手機與asp.net,並且我的搜索表單上有幾個按鈕。我需要它,所以當用戶點擊iPhone鍵盤上出現的'Go'按鈕時,它會選擇我的搜索選項。目前它加載上次加載的按鈕或上面的按鈕。jQuery Mobile,在多個按鈕的iPhone鍵盤上設置'Go'按鈕

這裏是我的html:

<asp:Label ID="lblWhat" CssClass="style=color:Red;" runat="server" Visible="false">Please Enter What you want to search for</asp:Label> 
      <label for="what">What:</label> 
       <asp:Label ID="lblWhere" CssClass="style=color:Red;" runat="server" Visible="false">Please Enter where you would like to search, or click Use My Location</asp:Label> 
      <input type="text" name="what" id="tbWhat" value="" runat="server" placeholder="What" /> 


       <br /> 

      <label for="where">Where:</label> 
      <input type="text" name="where" id="tbWhere" value="" runat="server" placeholder="Where"/> 

       <br /> 

      <input type="text" name="long" id="tbLong" runat="server" style="visibility: hidden; display: none;" /> 
       <input type="text" name="long" id="tbLat" runat="server" style="visibility: hidden; display: none;" /> 

<script language="javascript" type="text/javascript"> 
      if (navigator.geolocation) { 
       document.write('<input type="button" onclick="getLocation()" value="Use My Location" />'); 
      } else { 

      } 
     </script> 

    <input type="button" onclick="clearForm()" value="Clear" /> 
<br /> 
      <asp:Button ID="btnAccess" runat="server" Text="Access Requirements" /> 
      <asp:Button ID="btnSearch" runat="server" Text="Search" /> 


     </div> 

這btnSearch,我想當按下進入運行(或在瀏覽器中輸入)

湯姆

回答

相關問題