选择单选按钮时,用户界面不会刷新 [英] User Interface is not refresh when selection radio button

查看:60
本文介绍了选择单选按钮时,用户界面不会刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



当我在单选按钮中选择一个值时,我可以获得新值,但ui不会刷新新值。在ui中,所有单选按钮都未选中,焦点位于带有新值的单选按钮中。请帮助我。

解决方案

你的问题不明确,但我试图以自己的方式回答。假装你的加价就像



 <   div  >  <  输入   类型  =  radio    id   =  ExtraRoom   名称  =  roomType    value   = 额外房间  /  > 额外房间<   / div  >  
< 输入 类型 = radio id = PickUpToAirPort name = roomType value = 选择机场 / > 选择机场
< div id = SelectedRadio > < / div >





更新用户界面选择特定单选按钮的JQuery代码将是



 


document )。ready( function (){


< blockquote>(' input [type =radio]')。click( function (){


Hi All,

When i am selecting a value in radio button i am able to get the new value, but ui is not refresh with new value. in ui all radio button are unchecked and the focus is in the radio button with new value. please help me.

解决方案

Your question is not clear,but i have made an attempt to answer in my own way.Suppose your markup goes like

<div><input type="radio" id="ExtraRoom" name="roomType" value="Extra Room"/>Extra Room</div>
<input type="radio" id="PickUpToAirPort" name="roomType" value="Pick up to airport"/>Pick up to airport
<div id="SelectedRadio"></div>



JQuery Code to update UI on selection of particular radio button will be


(document).ready(function(){


('input[type="radio"]').click(function() {


这篇关于选择单选按钮时,用户界面不会刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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