last day (14 days later) » 

5:36 AM
0
A: How to apply keypress and mousedown event on dynamically created textbox

VdeVatmanI think you are passing the div (incorrectly) to your getDynamicTextBox() function, when what you actually want to pass is the value of each input textbox. I updated your jfiddle with the result I think you expect to have. here is the result. And this is pretty much what i've changed: ... $("#...

 
no this is not what i want sir in your edit the first box is not showing its value to the top box
 
@lucifer the first dynamicly created textbox is filled with the content of text1, that is what i understand that you want. What is what you really are trying to achieve then?
 
but in your fiddle the 1 st textbox is not getting the value i am inputting into it,have you checked ???
 
Which is the first textbox for you? DynamicTextBox or text1? Because in my edit DynamicTextBox is getting the value of text1 and that is what you are asking for as far as i can see.
 
I checked it again DynamicTextBox is not also getting value of text1
 
5:36 AM
are you sure this is the url you are clicking? jsfiddle.net/6tpmyro1/2 because it works. Close the one you've got and open this one: jsfiddle.net/6tpmyro1/2.
Hi there, in the fiddle you are using the dynamicly created inputboxes aren't filled with the values? because i can assure you that in this url : jsfiddle.net/6tpmyro1/2 (the one i've edited) it works perfectly, the only i'm not sure if that is what you want
 
hii you there
i can show you a fiddle that is almost solving my purpose i just need some alteration
 
have you checked this? jsfiddle.net/6tpmyro1/2
the one you've just passed to me is the same as the one that is in stackoverflow (i think)
when i click on add button in my edit it adds 3 input boxes with the values of text1 text2 and text3
and that is what i understand you are trying to achieve
 
Can you please do one thing in that fiddle ? i want to keep the values in the top textbox,which i am putting each time into the generated textboxes
it is getting updated each time
 
you want the 3 values to be in the first generated textbox?
 
yes and i want to hold each values it is getting replaced each time
no no i want 3 values
in three different textboxes
you r not understanding what i want
 
5:49 AM
i've already editted it to hold the 3 values on the 3 different generated text boxes
but you say it tsn't what you want
 
you updated the fiddle what i have sent you??
 
now i've done, this is the updated url from your jsfiddle: jsfiddle.net/4a0pcx5j/2
isn't that what you wanted/
?
 
I still dont see it working ,see i will just put a value in the generaated textbox and it will show in te upper one
 
you want the generated textboxes to update text1 text2 and text3?
 
yes and also all the values should be there the new value will just be appended with the previous one .the fiddle i have supplied you is doing that but i can not hold the values as it is replacing the previous one see jsfiddle.net/SantoshPandu/4a0pcx5j/1
 
6:00 AM
that isn't what you are asking on you stackoverflow's question definitely
 
yes that was i asking please can you update my fiddle
 
i'm trying so far i saw your error, let me see if i can fix it propperly
ok, i've done for the first one
now i just have to copy and paste for the other 2
 
yes please update the fiddle i supplied
 
you've got to write on the generated textbox and then press enter
the older textbox is then updated and still holds the old value
 
VdeVtam i can not press enter in my application
 
6:15 AM
ok, but we are getting closer
let me change it to be when it loses the focus then
 
sure sure
 
yes bro but why the 2 nd box is not working ,u r great
 
maybe i had some typoi
typo*
let me try to find it
second box is working for me, what is wrong?
for me all the text boxes work fine, are you sure second one is failing for you?
 
2nd box is not showing the timepicker
 
6:21 AM
aaaah it could be, because i did the fix for the first one, and then pasted for the 2nd and 3rd
and just changed the id
 
give the fiddle
 
this is the fiddle i'm working on jsfiddle.net/4a0pcx5j/4 but the second doesn't show the datepick, i haven't changed anything related to the datepick (i think)
but i'm still looking for what could be doing it
 
ok ok
please see
 
you had something wrong in your GetDynamicTextBox() function
your second input whas in the form of
<input class="txt2" class="time>
i changed it to be <input class="txt2 time">
i think it should work as you expected it to work, now
i editted my answer with all the 3 solutions i thought you wanted
the last one should be the solution
i think, let me know if it is or you need something else
@lucifer see if my answer is good enough for what you are asking for: stackoverflow.com/a/32282978/2326185 .
 
6:55 AM
upvoted your answer man
 
ok
i didn't understand propperly what you were asking for in any case
(at first)
well, you didn't upvote it, but you are not forced to do it
my answer wasn't good enough i guess
 
7:08 AM
no no i am doing
did it man
check it
 

last day (14 days later) »