我要jq获取到两个div里面的img的src的值,和input里面输入的值。怎么获取?

2025-02-27 17:09:05
推荐回答(1个)
回答1:

$('.odiv img').attr('src');
$('.pt').val();

分别获得img的src和input的value