Facebox添加逗号输入 [英] Facebox adding commas to input

查看:128
本文介绍了Facebox添加逗号输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是facebox显示灯箱内的一种形式,没有什么太令人兴奋了(只是一对夫妇datepickers,一些文本框和一个复选框)。
不过,我有与回传的问题,每当我从后它增加了facebox回','对输入的开始(让兔子变成兔子)
现在,我看到,那就是从ajaxcontroltoolkit的modalpopup扩展了同样的问题,所以我认为这是一个常见的​​问题。

I'm using a facebox to display a form inside a lightbox, nothing too exciting (just a couple of datepickers, some textboxes and a checkbox). However, I'm having issues with the postbacks, whenever I post back from the facebox it adds a ',' to the start of the input (so "rabbit" becomes ",rabbit") Now, I saw that there was the same issue with the modalpopup extender from the ajaxcontroltoolkit, so I assume it's a common issue.

谁能<击>要么解释的为什么的这种情况正在发生,或者告诉我如何解决它?提供修复这个体面的方式吗?其实我已经做到了,和它的作品非常漂亮,但我真的不想回答我的问题悬赏所以别人给它一个去!

Can anyone either explain why this is happening, or tell me how to fix it? provide a decent way of fixing this? I have actually done it, and it works very nicely, but I don't really want to answer my own bounty question so someone else give it a go!

干杯,埃德

修改

附见答案正确的解决方案(我解决了这个问题,但最终还是不想毁了奖金问题,那么剩下的答案,直到后)。

See attached answer for a correct solution (I fixed this eventually but didn't want to ruin the bounty question so left the answer until afterwards).

推荐答案

你为什么不调整输出?只需删除,每串

Why don't you trim the output? simply remove the ',' for each string

这篇关于Facebox添加逗号输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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