javascript - on pagebeforeshow need to check the checkbox using name and value in jquery mobile -


On the page Hi, jquery mobile needs to check the checkbox using the name and value, is it possible? Can someone please help me? Thank you. I have tried, but I am not able to do it. "<"> $ ('check' [name = checkbox-v-1] [value = "lang-js prettyprint-override" patient.] ') Sahara ("check", true) ;

  

You were too much on your first attempt.

When setting the checked property, set it to check instead of the correct: .prop ("checked", "checked") < / P>

After refreshing the JQM widget: .checkboxradio ("Refresh")

So now the whole line is

  $ ('input: checkbox [name = "checkbox-V-1"] [value = "patient"]). Prop ("check", "checked"). Checkbox drawer ("refresh");  

One task here

Click on the page 2 button and check that the patient has been examined .


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -