我想自動填寫第一個表格yahoo registration。 例如,當我點擊並選擇此頁面上檢查元素,並從在html輸入中設置的值不起作用
<input type="text" title="First Name" name="firstname" id="firstname" value="" size="32" maxlength="32" class="fieldValInit" autocomplete="off" aria-required="true" tabindex="1">
更改姓名輸入到
<input type="text" title="First Name" name="firstname" id="firstname" value="salam" size="32" maxlength="32" class="" autocomplete="off" aria-required="true" tabindex="1">
我沒有看到頁面上的任何變化。爲什麼?
您提到的場景,適合我。我可以從inspect元素編輯HTML,並可以修改該值。我已經用螢火蟲,Chrome和IE進行了驗證。請檢查您的瀏覽器版本。要動態設置元素的值,請使用下面的javascript document.getElementById('FirstName')。value =「salam」; – AJJ