I'm creating as form in Webspeed using AJAX. There is a logical field added on this.
If I am adding below text box to accept Yes or No like below then this is working fine.
<td><input type="text" name="activ" class="text_box" id="fld_active" value=`if available(pt_mstr) then string(pt_active) else 'Yes'`></td>
Now I want to change this from text box to combo box. Though below code is working ok but I see bit awkward.
Could someone verify if this approach is ok?
<td>
<select id="fld_xxac_active" value=`if available(xxac_mstr) then string(xxac_active) else 'no'`>
<option value="Yes" selected>Yes </option>
<option value="No" >No </option>
</select>
</td>
If I am adding below text box to accept Yes or No like below then this is working fine.
<td><input type="text" name="activ" class="text_box" id="fld_active" value=`if available(pt_mstr) then string(pt_active) else 'Yes'`></td>
Now I want to change this from text box to combo box. Though below code is working ok but I see bit awkward.
Could someone verify if this approach is ok?
<td>
<select id="fld_xxac_active" value=`if available(xxac_mstr) then string(xxac_active) else 'no'`>
<option value="Yes" selected>Yes </option>
<option value="No" >No </option>
</select>
</td>