dongyong1942 2013-04-29 19:40
浏览 25
已采纳

选择图片并发送表格[关闭]

I'm working on some personal projects, and today I just can't wrap my head around how to do one thing.

I have form, where is one input box and under I want to add bunch of thumbnails from which can user select from. and than He can hit Submit button and it will get processed by ajax depending on the input.

Now I have just classical select with options ( which is a text ) and that part I would like to replace with pictures, so user select picture and it will post a value of that picture or ID..

How would I go about to do it, logically ? ( I might not making much sense, I'm quite tired now :) ) I have the form working, ajax also, just can't figure out how to use picture as checkbox or something like that...

But any helpful comment is welcome.

  • 写回答

1条回答 默认 最新

  • dqba94394 2013-04-29 19:47
    关注

    You cannot do it with standard HTML and CSS, a <select> can only have text for its options. You can, however, implement a control that mimics a <select> dropdown in javascript or, I'd suggest, forego the work and use something like a ready-made jQuery plugin, for example, this or something from here.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度