开发者

Submitting value of an input field

开发者 https://www.devze.com 2023-04-12 18:42 出处:网络
How can I submit a value defined as <input id=\"inputProperties\" tabindex=\"23\" class=\"input_enabled\"

How can I submit a value defined as

<input id="inputProperties" tabindex="23" class="input_enabled" 
       name="inputProperties" size="60" maxlength="80" value="" />

using something like

<a tabindex="27" class="text_warn" id="executeCR" 
   href="javascript:document.ejbRuleForm.action.value='execute';
     document.Form.conditionalRuleId.value=<c:out value='${param.entryId}'/>;
     document.Form.inputProperties.value=<c:out value='${inputProperties}' />;
     document.Form.ex开发者_运维知识库ecuteChildRules.value=<c:out value='${executeChildRules}' />;
     document.Form.submit();" >


I'm not sure about what you are asking.

If that <input> is inside the <form> you're submitting, it will effectively get submitted with the parameter name of the name attribute of the input.

In case the <input> is not in the <form>, you might want to include for instance a <input type="hidden"> inside the form and assign the <input>'s value to the hidden before form submission.

0

精彩评论

暂无评论...
验证码 换一张
取 消