显示特定div中链接的内容 [英] Display content of link in particular div

查看:108
本文介绍了显示特定div中链接的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我想用jQuery打开特别div的锚链接,

i有更多比一个link.all lick应该打开特别是div

有人建议我吗?

解决方案

根据我的理解,

1)你想点击放在DIV中的链接

2)并且链接内容应该在另一个DIV中打开。



< html> 
< script src = Scripts / jquery-1.8.3.min.js type = text / javascript>< / script>
< script src = Scripts / jquery-1.8.3.js type = text / javascript>< / script>

< script type = text / javascript>


document )。ready( function (){

' #links a')。click( function (e){
e.preventDefault();


hi


I want to open anchor link in particular div using jQuery,
i have more than one link.all lick should be open in particular div
Anybody suggest me?

解决方案

To my understanding,
1) You want to Click Links you placed in a DIV
2) and that links content should open in another DIV.

<html>
<script src="Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.8.3.js" type="text/javascript"></script>

<script type="text/javascript">


(document).ready(function () {


('#links a').click(function (e) { e.preventDefault();


这篇关于显示特定div中链接的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆