EasyUI Forum
March 28, 2024, 10:49:39 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: automatic Data Binding on form does not support radio ?  (Read 20889 times)
wwjjkk
Newbie
*
Posts: 10


View Profile Email
« on: July 06, 2011, 09:19:29 PM »

the following is my test.When click the link named "Load",the radio does not checked.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jQuery EasyUI</title>
   <link rel="stylesheet" type="text/css" href="../themes/default/easyui.css">
   <script type="text/javascript" src="../jquery-1.4.4.min.js"></script>
   <script type="text/javascript" src="../jquery.easyui.min.js"></script>
   <script type="text/javascript">
      function loaddata(){
         $('#ff').form('load',{
            sex1:'2',
            sex2:'1'
         });
      }
   </script>
</head>
<body>
<h1>Form Demo</h1>
<div>
   <a href="#" onclick="loaddata()">Load</a>
</div>
<div style="background:#fafafa;padding:10px;width:300px;height:300px;">
    <form id="ff" method="post">
        <div>
            sex1
       <select name="sex1"  style="width:80px">
      <option value="1">man</option>
      <option value="2">women</option>
       </select>
        </div>
        <div>
            sex2
            <INPUT type="radio" name="sex2">man
            <INPUT type="radio" name="sex2">women
        </div>
    </form>
</div>
   
</body>
</html>
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: July 07, 2011, 12:00:21 AM »

This feature will be supported in version 1.2.4. You can also download the updated form plugin from http://www.jeasyui.com/easyui/plugins/jquery.form.js.
Logged
wwjjkk
Newbie
*
Posts: 10


View Profile Email
« Reply #2 on: July 07, 2011, 12:26:15 AM »

when will the next version be Released ?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!