• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 835
  • Last Modified:

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

0
Solutionabc
Asked:
Solutionabc
1 Solution
 
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
 
DesignbyonyxCommented:
$('.orderQty.selected input[title=Order Number]').val();
0
 
hehdaddyCommented:
Simple:

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

Cheers!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now