inlineadd

Questionsinlineadd
germanmary asked 9 years ago

hi sir

i need a help in inline edit.

i have created a page.and created a function to call in on-change of a first text box.
i get the value in alert box.

Please help me to assign to the third text box.

The Sample Function:

function calculateTS()
{

var dob = $("input[name='ts'].editable").val();

// $("input[name='total'].editable").val() ;
// alert( dob);
if(dob != '')
{
var totalw=$("input[name='QTY'].editable").val()* $("input[name='ts'].editable").val();
$('#total').html(totalw);
alert( $('#total').html(totalw));
$("input[name='total'].editable").val() = totalw;

}
}

2 Answers
Abu Ghufran answered 9 years ago

This is value assignment syntax in jquery.

$("input[name='total'].editable").val( totalw );

germanmary answered 9 years ago

Thank you sir,very kind of you

Your Answer

3 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?