javascript - Jquerymobile select menu disable options -


Hi, I'm getting a hard time doing this job, in my jquery mobile app, I have 3 option menus There are general options in the menu, the code is below

  & lt; Select class = "mySelect4" data-corner = "wrong" id = "objective1" & gt; & Lt; Option value = 1> Select & lt; / Options & gt; & Lt; Option value = 2> Generated & lt; / Options & gt; & Lt; Option value = 3> Increase & lt; / Options & gt; & Lt; Option value = 4> Increasing customer engagement & lt; / Options & gt; & Lt; / Select & gt; & Lt; Select class = "mySelect5" data-corners = "wrong" id = "objective2" & gt; & Lt; Option value = 1> Select & lt; / Options & gt; & Lt; Option value = 2> Generated & lt; / Options & gt; & Lt; Option value = 3> Increase & lt; / Options & gt; & Lt; Option value = 4> Increasing & lt; / Options & gt; & Lt; / Select & gt; & Lt; Select class = "mySelect6" data-corners = "wrong" id = "objective3" & gt; & Lt; Option value = 1> Select objective 3 & lt; / Options & gt; & Lt; Option value = 2> Generated & lt; / Options & gt; & Lt; Option value = 3> Increase & lt; / Options & gt; & Lt; Option value = 4> Increasing & lt; / Options & gt; & Lt; / Select & gt;   

If the user chooses an option in the Fist selection menu, then the option should be disabled in two other menus. Any idea or solution is appreciated

  $ ('# purpose1'). Change (function () {var value1 = $ (this) .val (); $ ('each (function () (if ($ (this) .val () == value 1) {$ (this) .attr ( "Disabled", "disabled");}});});   

and select the objective 2 and objective 3 box

I hope it

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -