jquery ready函数、css函数及text()使用示例

代码如下:

<script type="text/javascript" src="/javascript/jquery.js"></script> 
<script language="javascript"> 
$("#CheckoutStepShippingProvider").ready(function(){ 
if($("#Note_52413376ea55e_1").text()=="US$29.99"){ 
$("#XX_2").css("display","block"); 
}else{ 
$("#XX_1").css("display","block"); 
} 
}); 
</script>

相关推荐