我怎样才能取值:
<span name="MinPrice" class="irs-from">0</span>
<span name="MaxPrice" class="irs-to">0</span>
并将它们分配给 PHP 变量:
$MinPrice
$MaxPrice
这是我的 JQuery 代码:
var base_html =
'<span class="irs">' +
'<span class="irs-line" tabindex="-1"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span>' +
'<span class="irs-min">0</span><span class="irs-max">1</span>' +
'<span name="MinPrice" class="irs-from">0</span><span name="MaxPrice" class="irs-to">0</span><span class="irs-single">0</span>' +
'</span>' +
'<span class="irs-grid"></span>' +
'<span class="irs-bar"></span>';
我使用形式:
<form action="<?php echo languageURL(0, ''.$g['url'].'products.html'); ?>" method="get">
<div class="wrapper" style=" padding:20px;">
<div class="range-slider">
<input type="text" class="js-range-slider" value="" />
</div>
</div>
<input type="submit" class="btn-primary goo" value="Търсене" />
</form>