jquery change input box value

hi,

 using jquery I am trying to set an input box value but I cannot seem to grab it properly.
 
I only know the title of the input box which is Order Number.

please tell me how to set a value for Order Number. (see code below)

thanks.
<td class="orderQty selected">
<span> inputbox</span>
<span> <input title="Order Number"/></span>
</td>

Open in new window

SolutionabcAsked:
Who is Participating?
 
DesignbyonyxConnect With a Mentor Commented:
$('.orderQty.selected input[title=Order Number]').val();
0
 
SolutionabcAuthor Commented:
This does not work for me.

$(".orderQty selected span input [title = Order Number]").val(order);
0
 
cyberkiwiCommented:
$(".orderQty input[title='Order Number']")
0
 
SolutionabcAuthor Commented:
I need the class="orderQty selected". Because I am only applying it to certain td's. when the page loads all of them are called orderQty and I cannot apply it to all 150 items because of loading time.

I can only use class "orderQty selected".
0
 
hehdaddyCommented:
Simple:

$("input[title='Order Number']").val("my value");

Cheers!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.