Запустить скрипт Python с Google Cloud Scheduler?

У вас есть " в неправильном месте. Он должен быть в пределах ], чтобы выглядеть так:

$('input[value="' + v + '"]')

Вот рабочий пример:

var object = {
  opt1:"Red Large",
  opt2:"Orange Medium",
  opt3: "Green Small"
};

$.each(object, function (k, v) {
  console.log(v);
  $('input[value="' + v + '"]').prop('checked', true);
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<label><input value="Blue XL" type="checkbox" /> Blue XL</label>
<label><input value="Red Large" type="checkbox" /> Red Large</label>
<label><input value="Orange Medium" type="checkbox" /> Orange Medium</label>
<label><input value="Green Small" type="checkbox" /> Green Small</label>

2
задан Stephanie 19 January 2019 в 02:01
поделиться