HTML parsing - fetch and update data from the .html file

Posted by Amit Jain on Stack Overflow See other posts from Stack Overflow or by Amit Jain
Published on 2010-03-24T18:49:16Z Indexed on 2010/03/24 19:03 UTC
Read the original article Hit count: 755

Filed under:
|
|
|

I have a form in a .html files where input/select box looks like this

<input type="text" id="txtName" name="txtName" value="##myName##" />

<select id="cbGender"  name="cbGender">
 <option>Select</option>
 <option selected="selected">Male</option>
 <option>Female</option>
</select>

I would need to remove '##' value textbox and also update them with different values if needed be in the textbox/checkbox/ selectbox. I would know the id of the input types. The code is to be written in groovy. Any ideas?

© Stack Overflow or respective owner

Related posts about grails

Related posts about groovy