直升機,我不能選擇元素,你能幫助我嗎?在jquery中按名稱選擇元素
後 var string = $('input[value="' + min + '"]').prop('name');
我有string = ObjectSize[2]
;
我需要這個$('input[name=' + string + ']').remove();
,但它不工作。
Uncaught Error: Syntax error, unrecognized expression: input:text[name=ObjectSize[2]]
請幫助我。謝謝
添加的console.log(字符串)到您的代碼粘貼輸出的地方。需要看看它裏面有什麼。 – RaV