I m试图在MVC3使用jQuery做部分事。 我想做的是,在一栏中,我改变了超文本,以便在减少甄选变动时可以更新。
$(document).ready(function(){
$("#partial-6").html(@Html.Partial("_Edit",Model.Groups[0]));
});
该页装满时,没有修改该节。 就我所说的“我是部分”
I m试图在MVC3使用jQuery做部分事。 我想做的是,在一栏中,我改变了超文本,以便在减少甄选变动时可以更新。
$(document).ready(function(){
$("#partial-6").html(@Html.Partial("_Edit",Model.Groups[0]));
});
该页装满时,没有修改该节。 就我所说的“我是部分”
Unless the asp code is adding quotes, you will need to do so. Otherwise you aren t passing a string into the .html()
function:
$(function(){
$( #drop-down-id ).on( change , function () {
$("#partial-6").html( @Html.Partial("_Edit",Model.Groups[0]) );
});
});
当<代码>#drop-down-id要素发生变化时,将同一代码列入<代码>#partial-6。 如果你想实际改变你在<代码>第6部分<>/代码>部分中提供的信息,你将需要发出美国宇宙航空研究开发机构关于从服务器中收回部分内容的呼吁。
$(function(){
$( #drop-down-id ).on( change , function () {
$.get( path/to/server-side.asp , { id : $(this).val() }, function (serverResponse) {
$("#partial-6").html(serverResponse);
});
});
});
这将产生一项全球升温潜能值要求,即使用全球升温潜能值变量(id/
)发送的服务器侧面文字,该数值被设定为引发该代码的下级数值。
注:.on()
is new in jQuery 1.7 and in this case is the same as .bind().
问题回答
暂无回答
相关问题
getGridParam is not a function
The HTML:
<a href="javascript:void(0)" id="m1">Get Selected id s</a>
The Function:
jQuery("#m1").click( function() {
var s;
s = jQuery("#list4").getGridParam( selarrrow )...
selected text in iframe
How to get a selected text inside a iframe.
I my page i m having a iframe which is editable true.
So how can i get the selected text in that iframe.
jQuery cycle page with links
I am using the cycle plugin with pager functionality like this :
$j( #homebox )
.cycle({
fx: fade ,
speed: fast ,
timeout: 9000,
pager: #home-thumbs ,
...
How to clear all <div>s’ contents inside a parent <div>?
I have a div <div id="masterdiv"> which has several child <div>s.
Example:
<div id="masterdiv">
<div id="childdiv1" />
<div id="childdiv2" />
<div id="...
jquery ui dialog opens only once
I have a button that opens a dialog when clicked.
The dialog displays a div that was hidden
After I close the dialog by clicking the X icon, the dialog can t be opened again.
jConfirm with this existing code
I need help to use jConfirm with this existing code (php & Jquery & jAlert).
function logout()
{
if (confirm("Do you really want to logout?"))
window.location.href = "logout.php";
}
...
jQuery/AJAX in IE : Object doesn t support this property or method
Ok, I m stumped. Basically, this script works fine in FF, but not in IE (6,7 or 8) - in which it returns an "Object doesn t support this property or method" error. Any ideas?:
function ...
Wrap text after particular symbol with jQuery
What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself.
This is my html:
&...
热门标签
- winforms
- combobox
- fogbugz
- java
- date
- internationalization
- asp.net
- iis
- url-rewriting
- urlrewriter
- c#
- enums
- ocaml
- haxe
- algorithm
- string
- viewstate
- .net
- c++
- c
- symbol-table
- mysql
- database
- postgresql
- licensing
- migration
- vb.net
- vb6
- declaration
- vb6-migration
- python
- psycopg2
- backup
- vmware
- virtualization
- gnu-screen
- authentication
- desktop
- excel
- xll
- cultureinfo
- regioninfo
- oracle
- client
- session
- download
- html
- virtual
- constructor
- scenarios
- perl
- full-text-search
- javascript
- ajax
- testing
- oop
- inheritance
- vim
- encapsulation
- information-hiding