html - jquery .each function -


If I have 5 input boxes. Inputbox My Junkie function adds these tags 5 times after each. Input box line. Why is it like this?

I just want to say that each of these tags is inserted after each one. input box.

How does anyone have to do this? After

  function ("& lt; img src = \" images / thumbns_p_48.png \ "class = \" thumbV \ "(" .input box ") ($ (". Input Box ") ($ ('. Input Box') Id $ \ '(Input Box) Id = \" up \ "/>"); $ (' Input Box '). ("& Lt; img src = \" Picture / thumbs_down_48.png \ "class = \" thumbV \ "id = \" down \ "/ & gt;);});}  

html

 & lt; label = "FirstName" & gt; first name & lt; / label & gt; & lt; input type = "text" class = "input box" name = "first name" title = "first name Use "id =" first name "/>  

here :

 After  $ (this). ("& Lt; img src = \" images / thumbs_p_48.png \ "class = \" thumbV \ "id = \" above \ "/ & Gt; "); $ (this). Later (" & lt; img src = \ "image / thumb_t_48.png \" class = \ "thumbV \" id = \ "down \" / & gt; "); $ ('.input box') Every time you call it, it will be repeated through the whole dome.  

There will be a better way

  $ (". Input box"). After ("& lt; img src = \" images / thumbs_p_48.png \ "class = \" thumbV \ "id = \" above \ "/>) After ("& lt; img src = \" images / thumb_t_48.png \ "class = \" thumbV \ "id = \" down \ "/ & gt;");  

And do not forget to 'accept' who works for you.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -