English 中文(简体)
改变标识中隐蔽领域的价值?
原标题:Change a value of a hidden field in the markup?

是否有办法改变标识中(有小que或小 j)隐蔽领域的价值,因此,一旦我从文字中删除(即用稍后将触发的不同文字)就可使用这一新价值?

说:

<form>
...
  <input type="hidden" name="prev_address" id="prev_address" value="no">
  <input type="hidden" name="prev_job" id="prev_job" value="non">
...
</form>

<script>
...
$( #prev_address ).toggle( nbr_daysD < min_depuis_days ); 
document.form.prev_address.value =  yes ;

$( #prev_job ).toggle( nbr_daysE < min_emploi_days ); 
// OR
$( #prev_job ).value =  yes ;
...
</script>

价值观正在发生变化(如果我使用警示),但不是标志......

增 编

问题回答

页: 1 彩票使用.val(,以获取/确定投入(或选择或文本处理)要素的价值。

页: 1

如果你想看到价值的变化,你就可以利用火药来观察目前的OM。 大多数浏览器的“概览来源”特征只是显示浏览器发送的原始超文本;没有对照文字,因此你不会看到变化。

如果你在装满该页后修改了该页的数值,你可以查阅其他文字的更改价值,但如果你在网页上用电源,你将看到原来的数值。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签