Jump to content

Jquery: Can't get both actions to work together.


refiking

Recommended Posts

So, here's the problem.  I wrote a code that opens a div based on the selected dropdown.  That works great.  I then wanted to preselect a specific option ($_POST['value']). That works great.  The problem comes in when I also want to have the correlating div to open as well.  I can do one or the other, but never both together.  Please show me what I'm supposed to do:

 

                                        var theText = "Printer Setup";
									//$("#sow option:contains(" + theText + ")").attr('selected', 'selected');
									$("#sow option:contains(" + theText + ")").attr('selected', 'selected')$('#divoption5').show();

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.