Realize the linkage effect between input box and drop-down box

php中世界最好的语言
Release: 2018-03-15 09:55:51
Original
3528 people have browsed it

This time I will bring you the linkage effect between the input box and the drop-down box, and what are theprecautions to achieve the linkage effect between the input box and the drop-down box. The following is a practical case, let's take a look.

As shown in the picture:

##html code

 奖励类型:    
Copy after login

JQuery Code

Copy after login

PHP Code

public function add_alms() { $reward = $this->materials->selReward(); $this->assign('reward',$reward); return $this->fetch(); } public function do_add_alms() { $data = Request::instance()->param(); $this->alms->addAlms($data); }
Copy after login
I believe you have mastered the method after reading the case in this article, more Please pay attention to other related articles on the php Chinese website!

Recommended reading:

How to achieve dynamic acquisition of Jquery drop-down box data


Ajax and Jquery are combined with the database to implement it Secondary linkage of drop-down box


jQuery implements recursive infinite layer function


jquery obtains the value and text of the select tag

The above is the detailed content of Realize the linkage effect between input box and drop-down box. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!