I have the following code structure,
<a href="sample-test"> Text </a>
I am selecting the a using jQuery selector,
jQuery('a[href="sample-test"]').css({'backgroundColor' : 'yellow'});
and i want to replace the tag with any tag like <abbr></abbr>
let me know how to do it using jQuery.
...
Hello!
In my JS, I have an object called box_object.
It looks like this:
({ id:"3",
text:"this is a box object",
connection_parent:["1", "2"],
connection_child:["5", "6"],
connectiondata_child:{
0:{id:"5", linepoint:"bottom"},
1:{id:"6", linepoint:"bottom"}},
connectiondata_parent:{
0:{id:"1"...
Here is my Jquery:
$("#tool").click(function() {
$(".chelp").slideToggle();
$("wrapper").animate({ opacity: 1.0 },200).slideToggle(200, function() {
$("#tool img").toggle();
});
});
When you click #tool img #wrapper is hidden along with .chelp.
I need to control this with a cookie, so when the user hides #wrapper...
Hi Folks,
when creating a dialog with buttons like:
buttons: {
'button text': function(){
// do something
},
do I have access to the button within the click event handler?
$(this)
is the context/jQuery object of the whole dialog.
I doubt I have to be such cr...
Can i make jscrollpne such that parent pane doesnot scroll even when child scroll has reached its bottom. Now when child scrolling reaches bottom scrolling of parent occurs. I want parent to scroll only when mouse is out of child scrollpane.
...
Hi, I'm using Ajax to get some XML, and then filling in some fields on a form with the results. There is a numerical field on the form and I would like to sort the results by this number (highest first).
How would I go about doing this in jQuery?
My js function code is currently:
function linkCounts() {
ws_url = "http://archrepor...
I have a snippet of code such as:
$.getJSON("http://mysite.org/polls/saveLanguageTest?url=" + escape(window.location.href) + "&callback=?",
function (data) {
var serverResponse = data.result;
console.log(serverResponse);
alert(serverResponse);
});
It works fine in the sense that it makes a ...
Hi I was just wondering if its possible to do an ajax post a file in asp.net mvc,
basically i have a form with two buttons, one of the buttons extracts images for the selected document and displays them for the user to choose thumbnails for the document he is about to upload. The usee then fills out the rest of the form and then saves th...
Hi,
I'd like to validate a form using the jquery validate plugin, but I'm unable to use the 'name' value within the html - as this is a field also used by the server app.
Specifically, I need to limit the number of checkboxes checked from a group. (Maximum of 3.) All of the examples I have seen, use the name attribute of each element. W...
Hi,
How to find all the anchor tags inside a div tag and need to append one more property to the anchor tag. say target="_blank".
How can i do this in using jquery?
...
How can I get the selected value of a dropdown box using jQuery?
I tried using
var value = $('#dropDownId').val(); and
var value = $('select#dropDownId option:selected').val();
but both returns an empty string.
...
Im using a couple of JS functions to set a cookie named 'visible' with the value of either yes or no.
Essentially Im using these values to decide if a <div> is visible or hidden.
I've only just added the cookie, previously I had been using two images 1. Show 2. Hide as a button to hide and show the <div> like this:
HTML:
<img class=...
Hi
I want to change the url or query string without reloading the page...
I have used the QUERY STRING OBJECT plugin for jquery
I have this example page
in which on click of a album it should change the query string...
Now i can change the url using the code
window.location.href = $.query.set('aid', a_id);
but it goes for reloadi...
This is probably easy for you guys, but I can't understand it.
I want to save the filename of an image to it's own row in the SQL base.
Basically, I log on to the site where I have my own userID.
And each user has its own column for background images. And the user can choose his own image if he wants to. So basically, when the user cli...
Hi, has anyone ever used the JQuery plugin SimpleFAQ? I am trying to get it working and have successfully done so in Safari and Chrome. But the exact same code will not work in Firefox or Opera. My efforts lie here >>>>>>> http://www.northlight-studios.co.uk/dev/snaplocks/help-faq.html
I would appreciate it if anyone has any ideas.
...
i start learning jquery just yesterday. i have a div element with some content, and i want to hide it by changing it's height:
here is the script
<script type="text/javascript">
$(document).ready(function(){
$("#hide").click(function(){
$("#cont").animate({
height: '0'
},1500);
...
if (confirm('<%=Ns1.Ns2.MyClass.GetResourceText("DeleteConfirmationMessage")%>')) { /* something to do...*/ }
I have a jQuery expression as above. But the return value of GetResourceText method is a very long string. So my page renders the function like below:
if (confirm('
Are you sure lablabla? If you delete this lab...
I'm trying to make a list of items (telephones and dependents for a customer), for example, the user could include some number phones and remove others (maybe edit them if it is possible), like a list inside the record of customer.
I'd like to know how can I do it on client side and get the list in server side ?
Is there a jquery plugi...
I have a html textbox on which I've bound a function via jQuery to the paste event to prevent users pasting a value into the textbox. This functionality works well.
However it is possible to select some text from another textbox on the page and drag it into the textbox in which pastes are prevented. Is there a jQuery event that I can b...
Can someone explain facebox and thickbox, what's the difference between the two and which do you prefer?
Thanks in advance.
...