2010-12-07 70 views
0

如何更換mootools.Consider樣式類,如何使用mootools的

<form> 
<div class="form-label"> 
    <label>User ID</label> 
</div> 
<div class="form-element"> 
    <input type="text" name="userid"> 
</div> 
<div class="form-label"> 
    <label>password</label> 
</div> 
<div class="form-element"> 
    <input type="text" name="password"> 
</div> 
</form> 

我更換樣式類,我想與form-label-new更換樣式類form-label

感謝

回答

0
$$('.form-label').set('class', 'form-label-new'); 
+0

真棒!謝謝you.It對我的作品 – abhis 2010-12-07 05:11:13