使用Js添加的ListItem在页面加载时被清除? [英] ListItems added using Js gets cleared on Page load?

查看:96
本文介绍了使用Js添加的ListItem在页面加载时被清除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我使用js将ListItems绑定到dropdownlist。但是在保存操作时不会保留选定的值。我是否需要在任何隐藏区域捕获所选项目?

请告诉我


Sudha

Hi ALL,
I am binding ListItems to dropdownlist using js.But the selected value is not retained while save operation. Do I need to capture the selected Item in any hiddenfields ?
plz tell me

Sudha

推荐答案


大家好,

我使用js将ListItem绑定到dropdownlist但保存操作时不保留所选值。我是否需要在任何隐藏区域捕获所选项目?

请告诉我


Sudha
Hi ALL,
I am binding ListItems to dropdownlist using js.But the selected value is not retained while save operation. Do I need to capture the selected Item in any hiddenfields ?
plz tell me

Sudha



您的保存操作是否正确处理或停止执行此操作?

让我知道。

我认为当您提交页面时,根据浏览器设置,这很开心。

我认为它不应该损害你的页面提交。


Debasis Jana

Your save operation gets processed properly or it stops to do that?
Let me know.
I think when you submit the page then according to browser settings this happnes.
I think it should not harm your page submitting.

Debasis Jana



您的保存操作是否正确处理或停止执行此操作?

让我知道。

我认为当您提交页面时,请根据浏览器设置这很开心。

我认为它不应该损害你的页面提交。


Debasis Jana
Your save operation gets processed properly or it stops to do that?
Let me know.
I think when you submit the page then according to browser settings this happnes.
I think it should not harm your page submitting.

Debasis Jana



这是我的代码。我不知道为什么由于Ajax或由于我的代码有任何错误而发生这种情况

This is my Code. I dont know why this is happening its due to Ajax or due to any wrong with my code

展开 | 选择 | Wrap < span class =codeDivider> | 行号



您的保存操作是否正确处理或停止执行此操作?

让我知道。

我认为当您提交页面然后根据浏览器设置很开心。

我认为它不应该损害你的页面提交。


Debasis Jana
Your save operation gets processed properly or it stops to do that?
Let me know.
I think when you submit the page then according to browser settings this happnes.
I think it should not harm your page submitting.

Debasis Jana



我保留这些字段是强制性的,只有这些字典才有ems不为null它将被保存。但是在页面加载期间,列表项会被清除。

I have kept these fields mandatory and only if these listitems are not null it will get saved. But the listitems are getting cleared during page load.


这篇关于使用Js添加的ListItem在页面加载时被清除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆