My JS level is a bit bad, get a text box lose focus and get the value of the corresponding hidden field for 3 minutes, hi. For those JS, jquery, the great God to express their high esteem. In this the implementation of the code posted to do not know the Codefans to look at, applicable to the cycle list, dynamic change in order, the great God floated over it.
HTML code
<script src= "http://code.jquery.com/jquery-latest.js" ></script>
<ul id= "px1"
<li>
<input type= "text" value= " size=" 5 "name=" Zs "/>"
<input type= "hidden" value= "5" name= "Hidd"/>
</li>
<li>
<input type= "text" value= "a" size= "5" name= "Zs"/>
<input type= "hidden" value= "6" name= "Hidd"/>
</li>
<li
<input type= "text" value= "" size= "5" name= "Zs"/>
<input type= "hidden" value= "7" name= "Hidd"/>
</LI>
<li>
<input type= "text" value= " size=" "5" name= "Zs"/>
<input type= "hidden" value= "8" name= "Hidd"/>
</li>
</ul>
jquery Code
<script>
$ ("document"). Ready (function () {
$ (' #px1 Li '). Find ("Input[name=zs]"). blur (function () {
var ZS = $ (this). Val ();
var uid = $ (this). Next ("Input[name=hidd]"). Val ();
alert (ZS);
Alert (UID);
});
});
</script>
Effect chart