Jump to content

JQuery Control Drop down list


FooKelvin
 Share

Recommended Posts

Hi All,

 

Would like to ask whether can the drop down list in html can be control by Jquery with this condition?

Each question can only rate for 3 times, the following drop box for that question should disable and not allow to make any rating. 

 

here is my HTML code:

<div>
<span id="questionnaire-question">Q1)&nbspPlease QuestionA</span>
<table>
                        
                        
                            <tr style="width: 365px;">
                                <td><label>A1</label></td>
                                <td>
                                    <select name="ranking[13]" class="02A" group="02A">
                                        <option value="" >Please Rank</option>
                                        <option>1</option>
                                        <option>2</option>
                                        <option>3</option>
                                    </select>
                                </td>
                            </tr> 
							<tr style="width: 365px;">
                                <td><label>A2</label></td>
                                <td>
                                    <select name="ranking[14]" class="02A" group="02A">
                                        <option value="" >Please Rank</option>
                                        <option>1</option>
                                        <option>2</option>
                                        <option>3</option>
                                    </select>
                                </td>
                            </tr>
                        
                        
                            <tr style="width: 365px;">
                                <td><label>A3</label></td>
                                <td>
                                    <select name="ranking[15]" class="02A" group="02A">
                                        <option value="" >Please Rank</option>
                                        <option>1</option>
                                        <option>2</option>
                                        <option>3</option>
                                    </select>
                                </td>
                            </tr>
							<tr style="width: 365px;">
                                <td><label>A4</label></td>
                                <td>
                                    <select name="ranking[16]" class="02A" group="02A">
                                        <option value="" >Please Rank</option>
                                        <option>1</option>
                                        <option>2</option>
                                        <option>3</option>
                                    </select>
                                </td>
                            </tr>							
                            </table>
                    </div>
                    
                    
                    <div>
                        <span id="questionnaire-question">Q2)&nbspPlease QuestionB</span>
                        <table>
                            <tr style="width: 365px;">
                                <td><label>B1</label></td>
                                <td>
                                    <select name="ranking[21]" class="03A" group="03A">
                                        <option value="" >Please Rank</option>
                                        <option>1</option>
                                        <option>2</option>
                                        <option>3</option>
                                    </select>
                                </td>
                            </tr>
                        

                        
                            <tr style="width: 365px;">
                                <td><label>B2</label></td>
                                <td>
                                    <select name="ranking[22]" class="03A" group="03A">
                                        <option value="" >Please Rank</option>
                                        <option>1</option>
                                        <option>2</option>
                                        <option>3</option>
                                    </select>
                                </td>
                            </tr> 
                        
                        
                            <tr style="width: 365px;">
                                <td><label>B3</label></td>
                                <td>
                                    <select name="ranking[23]" class="03A" group="03A">
                                        <option value="" >Please Rank</option>
                                        <option>1</option>
                                        <option>2</option>
                                        <option>3</option>
                                    </select>
                                </td>
                            </tr>
                          <tr style="width: 365px;">
                                <td><label>B4</label></td>
                                <td>
                                    <select name="ranking[28]" class="03A" group="03A">
                                        <option value="" >Please Rank</option>
                                        <option>1</option>
                                        <option>2</option>
                                        <option>3</option>
                                    </select>
                                </td>
                            </tr>
                        
                            
                        
                            </table>
                    </div>
                    
                        

Thank You.

Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.