I have this working code
$('input[name='+ string[1] +']').css({'background':input_accept_icon});
As you can see input with some name get’s some new css.
Now I want to place both input and select elements in the same line.
I am trying this and other things but it’s not working for now
$('fieldset > :tags(input,select)[name='+ string[1]+']').css({'background':input_accept_icon});
Depending on your markup, you might want to use the :input selector. It matches
<input>,<select>,<textarea>and<button>elements: