Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Every One,

In my project a small issue is coming i couldnot figure it out why it is coming.

When I am closing the modelpopextender and selecting the text boxes, they are not getting selecting.Can Any one tell why it is coming and how to solve this issue.

Thanks.
Posted
Comments
Anurag Sinha V 25-Jul-13 7:19am    
Post some code mate...
Jameel VM 25-Jul-13 7:32am    
please add more information
kishore sharma 25-Jul-13 8:29am    
"selecting the text boxes" what do you mean by this

1 solution

I believe this is what you are asking

Using jquery selectors you are unable to select elements which are created dynamically.
if this is right then This is what may be the issue as i have also faced the same thing.

When you create dynamic elements which will not be available on page and try to select using jquery selector but it can not be selected.

JavaScript
Dynamically created elements will not be accessible untill we add to page 
once we create element make sure we put in page i.e.
$('#divSuggestion').html('<input type="text" id="txt" class="text" />');

after this line you can select
$('.text')

where divSuggestion is the Div inside which wanna add the textbox element.
after inserting Html string to web element ,it will be available on the page,then you can select those textbox.

Hope this may help.
Happy coding
 
Share this answer
 
v2
Comments
santoshkumar413 25-Jul-13 9:51am    
Thanks for u r reply...
kishore sharma 26-Jul-13 0:50am    
is this solved your problem?,if yes mark as answered.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900