[jQuery] element selection

2009-02-17 Thread Ashit Vora
Hi, I 've a small query, I have a table with each row having a unique id (eg. 1,2,3,4) As an Ajax response I receive ID in JSON format. I want to remove the row having that ID. For selecting element using Id, I generally use $('id').fadeOut(); but how do I out the value of variable in this

[jQuery] element selection problem

2009-01-10 Thread bob
What is the best way to select class="explanation"? I have available array var idArray = ['', 'state','gender']; I tried this jQuery('#'+idArray[i]+'Sector div.ex'); and it did not work. Note: I cannot use id inside of Alabama