<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>运达&#039;s  blog &#187; jquery</title>
	<atom:link href="https://www.yunda51.com/?feed=rss2&#038;tag=jquery" rel="self" type="application/rss+xml" />
	<link>https://www.yunda51.com</link>
	<description>运达的博客</description>
	<lastBuildDate>Wed, 12 Nov 2025 07:58:26 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.19</generator>
	<item>
		<title>JQuery 绑定select标签的onchange事件，弹出选择的值，并实现跳转</title>
		<link>https://www.yunda51.com/?p=1034</link>
		<comments>https://www.yunda51.com/?p=1034#comments</comments>
		<pubDate>Mon, 28 Oct 2013 05:43:49 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[php技术]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=1034</guid>
		<description><![CDATA[&#60;script src=&#34;jquery.min.js&#34; type=&#34;tex<a href="https://www.yunda51.com/?p=1034" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<pre class="wp-code-highlight prettyprint">
&lt;script src=&quot;jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){
$(&#039;#mySelect&#039;).change(function(){
//alert($(this).children(&#039;option:selected&#039;).val());
var p1=$(this).children(&#039;option:selected&#039;).val();//这就是selected的值
//var p2=$(&#039;#param2&#039;).val();//获取本页面其他标签的值
//window.location.href=&quot;xx.php?param1=&quot;+p1+&quot;¶m2=&quot;+p2+&quot;&quot;;//页面跳转并传参
window.location.href=&quot;{:U(&#039;webapp/Hospital/getHospitalBySearch&#039;)}&amp;type=&quot;+p1+&quot;&quot;;//页面跳转并传参  
})
})
&lt;/script&gt; 

&lt;select id=&quot;mySelect&quot;&gt;  
  &lt;option value=&quot;1&quot; selected=&quot;selected&quot;&gt;性质&lt;/option&gt;  
  &lt;option value=&quot;2&quot;&gt;私立&lt;/option&gt;  
  &lt;option value=&quot;3&quot;&gt;公立&lt;/option&gt;  
&lt;/select&gt; 
&lt;input id=&quot;param2&quot; type=&quot;text&quot; name=&quot;param2&quot; value=&quot;提交&quot; /&gt;
</pre>
<p>转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/1034.html">http://www.yunda51.com/1034.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=1034</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
