Wednesday 15 April 2015

html - Select a specific row's childs with a specific class with JQuery -


I want to select all the elements in which there is a square "szoveg"

  & Lt; Tr & gt; & Lt; Td> & Lt; Input type = hidden name = sss value = M & gt; & Lt; / Td> & Lt; Td> & Lt; Input type = hidden! [Enter image details here] [1] Name = MMM value = U & gt; & Lt; / Td> & Lt; Td> & Lt; Input class = "szoveg" type = article name = x3 maxlength = 5 size = 31> gt; & Lt; / Td> & Lt; Td> & Lt; Input class = "szoveg" type = text name = x4 maximum length = 20 size = 52 & gt; & Lt; / Td> & Lt; Td> & Lt; Input class = "szoveg" type = text name = x5 maxlength = 20 size = 43> & Lt; / Td> & Lt; Td> & Lt; Input class = "szoveg" type = text name = x6 maximum length = 200 size = 75> gt; & Lt; / Td> & Lt; Td colspan = 2> gt; Input class = "gomb" type = value submit = new onclick = "changecolor2 ()" & gt; & Lt; / Td> & Lt; / TR & gt;   

I can choose the specific line with $ ("# megye_tablazat tr"). Eq (3) , but can not select Input element where class is szoveg

  $ ("post-text"  

# Megye_tablazat tr "). Eq (3). Find ('input szoveg') each (function () {....}).

No comments:

Post a Comment