ラジオボタンをクリックして境界線の画像を変更しようとしていますが、次のことを行っています:
<input type="radio" name="field" value="4" onclick="document.getElementbyId('pet').style.borderImage='url(http://ianon.info/pet_support/borders/pawprint.png) 120 round'"/>
次のエラーが表示されます。
Uncaught TypeError: document.getElementbyId is not a function
これが「border」オプションでは機能するのに、「borderImage」オプションでは機能しないのはなぜですか。ドキュメントのさまざまな部分で定義しているすべての JS 関数が認識されないため、onclick で定義したいと思います。