我想在控制器中使用codeigniter框架显示bootstrap模式弹出窗口。 [英] I want show bootstrap modal popup in controller using codeigniter framework.
本文介绍了我想在控制器中使用codeigniter框架显示bootstrap模式弹出窗口。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这个问题在codeigniter上。
我在视图页面中为bootstrap模型弹出编写了代码,在这里写了一些关于bootstrap弹出窗口的文本字段。在这里我提交表单,如果任何valdations在bootstrap弹出窗口失败,我想重新打开弹出窗口并在弹出窗口上显示验证错误消息。当我提交表格时,控制器转到控制器,在这里我使用的是codeigniter验证,而不是javascript验证。
谢谢。
Hi,
this question on codeigniter.
I wrote code in view page for bootstrap model popup, in this wrote some textfields on bootstrap popup. In this I submit the form, If any valdations fails on bootstrap popup I want reopen the popup and show validation error messages on popup. When I submit the form the controle goes to controller, and here I am using codeigniter validations, not javascript validations.
Thank you.
推荐答案
<! - 您视图中的代码 - >
frist您需要这个
< input type =hidden value =<?php echo
<!--code in your view-->
frist you need this
<input type="hidden" value="<?php echo
duration-> visaId;?> id =visaId/>
比添加这个
函数ViewVisaPopups(visaBr){
var visaId =
duration->visaId;?>" id="visaId"/>
than add this
function ViewVisaPopups(visaBr) {
var visaId =
(#visaId)。val();
("#visaId").val();
这篇关于我想在控制器中使用codeigniter框架显示bootstrap模式弹出窗口。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文