I have the following script

&lt;script type="text/javascript"&gt;
    $(document).ready(function(){
        if ($("input[id^='ABCD']").$("input[id$='Z']")) {           
            $("input[id^='ABCD']").$("input[id$='Z']").remove();
        }
    })
&lt;/script&gt;


And I want to remove the elements whose ID starts with "ABCD" and ends with "Z".
How can I do that?


Question: Is it awkward to say "Good morning" to roommate every day?
Answer: It's completely okay in any culture, I think. That's because greeting someone in the morning is a gesture of goodwill that the day has begun with some goodness. 

Don't we greet our parents with 'Good Morning' daily? Also, I've seen kids greeting this to their parents in many Hollywood movies. That said, it's completely okay to say 'Good Morning' to your roommate everyday.