我有onclick
屬性附加到它的輸入元素:jQuery的觸發點擊「點擊」屬性
<input id="" type="radio" name="" value="" onclick="SetUniqueRadioButton('rptrDelRates.*grpDelRate', this);">
一切工作良好,但是當我決定要觸發手動點擊使用jQuery
此元素上我得到的錯誤如下:
無效的正則表達式:/rptrDelRates.*grpDelRate/:堆棧溢出
jQuery的電話:
$('.setup-radio').on('click', function() {
$(this).find('input').trigger('click');
return false;
});
你不」在你的輸入級'.setup-radio'。 –
@SumanBogati不,輸入在類「setup-radio」的元素中。 –
我們需要看看'SetUniqueRadioButton'函數的代碼。 –