Find Jobs
Hire Freelancers

Impelenting Search Like Function in new form

$10-30 USD

完了済み
投稿日: 4年近く前

$10-30 USD

完了時にお支払い
Hello everyone, I have created a form that has a google search like function that when you type a letter it will give you suggestions from a database for you to continue filling the form. I have included the following js libraries ``` <link rel="stylesheet" href="[login to view URL]" /> <script src="[login to view URL]"></script> <script src="[login to view URL]"></script> <!-- Bootstrap Css --> <link href="[login to view URL]" rel="stylesheet">``` Code works perfectly here: <div class="container"> <div class="row"> <h2>Search Here</h2> <input type="text" name="search" id="search" placeholder="search here...." class="form-control"> </div> </div> <script type="text/javascript"> $(function() { $( "#search" ).autocomplete({ source: '[login to view URL]', }); }); However when I implement it in another form it will not work, I think It has something to do with ID attribute in new form . This is the code in the new form : <div class="form-group"> <input class="form-control-1" id="nombre-1" name="nombre" placeholder="Nombre:" required="" type="text"> </div> <script type="text/javascript"> $(function() { $( "#nombre-1" ).autocomplete({ source: '[login to view URL]', }); }); </script> I think I might be doing some mix up with ID attribute. Any help will be greatly appreciated. This is the php called. <?php require_once "[login to view URL]"; if (isset($_GET['term'])) { $query = "SELECT * FROM visitas WHERE nombre LIKE '{$_GET['term']}%' LIMIT 25"; $result = mysqli_query($conn, $query); if (mysqli_num_rows($result) > 0) { while ($user = mysqli_fetch_array($result)) { $res[] = $user['nombre']; } } else { $res = array(); } //return json res echo json_encode($res); } ?>
プロジェクト ID: 25812650

プロジェクトについて

6個の提案
リモートプロジェクト
アクティブ 4年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
Hello !!! (Expert in AWS ) I am specializing in Wordpress, Wordpress themes, Blog, Woo-commerce HTML/CSS, UI/[login to view URL] refer to my portfolio of work on Freelancer I am highly proficient in the following Skill: Wordpress/ Shopify/ HTML/CSS /WIX/ Bootstrap/ Photoshop/ Coral/ Email templates/ Business card/ Woo-commerce/ landing pages/ User-experience/ Responsive/ as well as Web/Graphics Designing I have 6 years of experience in the field of design/development and I'm more than happy to provide you with additional examples before commencing work. Please have a look at my recent work. [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] Regards, Rococo Consultant Pvt. Ltd
$30 USD 1日以内
4.9 (18 レビュー)
4.3
4.3
この仕事に6人のフリーランサーが、平均$29 USDで入札しています
ユーザーアバター
Hello, I am a PHP, jquery and AJAX expert. I can solve the problem ASAP. Kindly come over the chat for hire and I can start ASAP. Thank you
$25 USD 1日以内
5.0 (16 レビュー)
3.6
3.6
ユーザーアバター
I can implement the search form. I can fix the error and I can get it done as soon as possible I have plenty of experience working on the front and back-end of websites
$30 USD 1日以内
4.8 (10 レビュー)
3.3
3.3
ユーザーアバター
Hi, there I go through your bug will fix it within one hour please initiate chat. I have more than three years of experience you can my review too. Can start work now
$30 USD 1日以内
5.0 (3 レビュー)
2.3
2.3
ユーザーアバター
Hi Client I am a PHP/HTML/javascript expert and I can do this job successfully and quickly. If you will award me , i will complete the code in few hours I have rich experience 6+ years in web development and I can say that's exactly what I specialize in. You will satisfied on my work. I am ready to start work immediately. Please contact me. Thanks
$20 USD 1日以内
5.0 (5 レビュー)
2.0
2.0
ユーザーアバター
I can get this for you in less than 1 hour, if the code you paste up there is same as the one on your web app that means I have see the error. You can message me to ask any question
$36 USD 1日以内
5.0 (1 レビュー)
1.4
1.4

クライアントについて

HONDURASのフラグ
Tegucigalpa, Honduras
5.0
55
お支払い方法確認済み
メンバー登録日:3月 26, 2015

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。