March 1st, 2013, 01:25 AM
Html Form Content Extractor
Hello all, I was trying to extract the labels associated with form elements(like radios, textboxes, etc) , but there is no way to extract them, even via dom it is not possible. I mean, it is completely dependent on heuristics ( eg, distance between form element and label, position of label wrt form element etc). I have to ask that is there any way by which i can extract labels associated with form elements or is there any software available in market?
Also, in html 4 and 5, there is a "label" tag, but it is not widely used, so i can't use that also.
Kindly help me.
March 1st, 2013, 07:37 PM
You can use jQuerys built in closest() function. That will target the closest element to the form element in the hierarchy. When you submit the form, use the onSubmit form handler and run a JS/jQuery function.
March 1st, 2013, 10:44 PM
Thanks, will give it a try
March 9th, 2013, 01:51 AM
in blog posting i have a problem in that why we use ancer tab nere a keyword...n what is the procedure for that..