将一些控件设置为某个id。 [英] set some control to some id.

查看:76
本文介绍了将一些控件设置为某个id。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我的数据库中有一个名为product的表格,我希望将按钮,文本框等控件设置为特定的productId,就像电子商务的工作方式一样。

ex:如你所知,在电子商务网站上,一些产品可以通过点击按钮购买而不是其他产品购买,就像在ebay上你可以有一个购买按钮或放置出价按钮和一个文本框来输入金额。要做这种控制吗?

解决方案

您应该在此表单中使用一个AJAX表单,以获得金额和购买按钮的文本框。

Hi!
I have a table called product in my db and with this I want to set some control like button,textbox to specific productId like how e-commerce work.
ex: as you know on e-commerce website some product can be bought by clicking on a button buy and other not,like on ebay you can have a buy button or place bid button and a textbox to enter the amount.how to do this kind of control?

解决方案

You should use an AJAX form an inside this form to have a text box for the amount and your Buy button.


这篇关于将一些控件设置为某个id。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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