简体   繁体   中英

ajax and multiple check boxes

如何以ajax语言显示多个复选框的值?

AJAX is a not a language , its more of a technique used on the client-side to create interactive applications on your webpage by using a group of languages such as JavaScript and PHP.

To display the values you can use HTML and JavaScript, look at Finding the value of an HTML form checkbox or with PHP, HTML and JavaScript at PHP Example AJAX and MySQL

I would suggest you to have a look at PHP Ajax tutorial :)

There are quite some ways you can create checkboxes:

With PHP:

echo '<input type="checkbox" name="whatever" />';
// and son on

With Ajax Script:

You could simply ajax response which contains raw html of checkboxes.

With Javascript:

var chk = document.createElement("input");
chk.setAttribute("type", "checkbox");
var frm = document.forms[0];
frm.appendChild(chk);
// and on on........

But all of those things seem to be new to you, you should first read PHP Ajax tutorial .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM