c.s
c.s

Reputation: 1

ajax and multiple check boxes

how to display multiple checkboxes value in ajax language?

Upvotes: 0

Views: 489

Answers (2)

Anthony Forloney
Anthony Forloney

Reputation: 91776

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

Upvotes: 1

Sarfraz
Sarfraz

Reputation: 382656

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.

Upvotes: 0

Related Questions