Git Product home page Git Product logo

jquery.ajax-combobox's Introduction

jquery.ajax-combobox

A jQuery plugin for creating a text box it can auto-complete and pull-down-select.

Demo

http://www.usamimi.info/~sutara/ajax-combobox/

CDN

http://www.jsdelivr.com/projects/jquery.ajax-combobox

Usage

HTML
<head>
	<link rel="stylesheet" href="css/jquery.ajax-combobox.css">
	<script src="js/jquery.ajax-combobox.7.2.1.js"></script>
</head>
<body>
	<input type="text" id="box01">
jQuery
$('#box01').ajaxComboBox('foo.php');

Note

Database

Change the value to connect Database in "./dist/jquery.ajax-combobox.php".
("./dist/jquery.ajax-combobox.php"の文頭のデータベースの接続設定を、お使いの環境に合わせて変更して下さい。)

<?php
//++++++++++++++++++++++++++++++++++++++++++++++++++++
//#### You MUST change this value. ####
$mysql = array(
	'dsn'      => 'mysql:host=localhost;dbname=acbox;charset=utf8',
	'username' => 'root',
	'password' => ''
);
$sqlite = array(
	'dsn'      => 'sqlite:../sample/sample.sqlite3',
	'username' => '',
	'password' => ''
);
new AjaxComboBox($sqlite);
//++++++++++++++++++++++++++++++++++++++++++++++++++++
?>
button_img

Change the value of button_imgoption to your environment.

$('#foo').ajaxComboBox(
	'bar-directory/jquery.ajax-combobox.php',
	{
		button_img: 'bar-directory/btn.png'
	}
);

Extensions

Forked

jquery.suggest 1.1

jquery.caretpos.js 0.1

Author

Yuusaku Miyazaki (宮崎 雄策)

License

MIT License

jquery.ajax-combobox's People

Contributors

sutara79 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.