Home >Backend Development >PHP Tutorial > 关于jquery 取值有关问题

关于jquery 取值有关问题

WBOY
WBOYOriginal
2016-06-13 13:31:23759browse

求助关于jquery 取值问题


  尺寸:未选择
 

     
  • S

  •  
  • L

  •  
  • SL

  •  
  • LL

  •  



$(function(){
  $(".pro_size li span").click(function(){
  $(this).parents("ul").siblings("strong").text( $(this).text() );
   
  })
})

php提交时如何 获取选中的尺寸?

请求帮助

------解决方案--------------------

尺寸:未选择

  • S

  • L

  • SL

  • LL







把选中值放到隐藏域中,然后$_POST['size']就可以获得选中值
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn