Hello.
Please consider the following HTML:
<td>
Some Text
<table>.....</table>
</td>
I need to manipulate the "Some Text" text of td element. I should not touch the table element inside of this td.
So, just for example, maybe I want to replace all "e" with "@". I tried a few approaches with jQuery's .text() and .html(). I seem...
Possible Duplicate:
jquery trigger - change function
I have a radio button set called "pick_up_point" and I have a change handler to detect the radio button that is checked. In the change handler I call a function "clearFields()" which basically clears out the input fields.
function clearFields()
{
$("#Enquiry_start_point")....
I have an ASP.NET reportviewer in a page whose width (a div width) I am trying to determine.
I have the test code below. The first alert returns the proper client id. I can see the div in the html source. I can see its width in FireBug. However the second alert returns null. The syntax looks fine. Why is it returning null?
<script type=...
I have a button like this
<input type="button" id="btnEdit" value="Edit Selected" class="emrBTN" style="top:5;right:95;width:100; visibility:hidden" />
I want to change the visibility to visible using jquery onclick ob a button event. How can I do that.
Thanks
...
There is a semitransparent overlay div covering document which destroys on click, but I need somehow to trigger onlick events of the element beneath overlay at the same time. Is there a way to click on specific coordinates with JS, or maybe determine underlying element having absolute x and y positions? Thanks.
...
Hi
I am using jquery datatables and MS XSS library.
I did this
AntiXss.HtmlEncode(MyDate.ToString("MM/dd/yyyy h:mm tt"))));
this renders this
07/22/2010 4:04 PM
So its all encoded. Now for whatever reason this messes datatables up. It can't figure out how to sort anymore.
So why is it encoding the slashes and dots? w...
I am using openflashchart in my website that generates multiple flash graphs for a certain model.
I am trying to figure out best way to present these multiple flashes in one page. I have tried slideshow plugins (the issue with them is that the next/previous type elements which are generally over the sliding content, stop working when t...
I am looking for a way to change the option value from a select tag when users click on a link.
For example I have a select option html:
<select> <option value="0">Please Select</option>
<option value="1">red</option>
<option value="2">white</option>
</select>
And I have 2 links <a href="#" title="red" class="preview_link">red</a>...
Here's the snippet of code that I'm using to animate a div with jQuery:
$('.row0').hover(function(){
var markeranim = $('.marker0');
var shadowanim = $('.markerShadow0')
var markertop = markeranim.position().top;
var shadowtop = shadowanim.position().top;
var shadowleft = shadowanim.position().left;
...
Hello,
I am using jQuery fullcalendar and I am loving its fantastic feature set that is growing by the month.
I am wondering if anyone has any ideas on how I could integrate a jQuery Gannt chart with jquery fullcalendar
I have found a few projects that look promising
http://www.maro-z.com/examples/jquery.gantt/
http://code.google.co...
I have two radio buttons, to which I have assigned change handlers to show/hide certain divs based on the selection:
$("input[name='pick_up_point']").change(function()
{
if($("input[name='pick_up_point']:checked").val() == "pick_up_airport")
{
$("#pick_up_airport_div").slideDown();
$("#pick_up_attraction_div").hi...
How to add the style (style=display:"block") to an element in jquery
...
Hi,
I want to create a drop down menu with autocomplete feature. I have a role object with properties roleId, roleDescription. My search box should only autocomplete on roleDescription. I followed this example:
http://code.google.com/p/struts2-jquery/wiki/AutocompleterTag
autocompleter-select.jsp
<sj:autocompleter
...
I searched everywhere but is there an alternative for http://www.dailymarkup.com/
...
Using JQuery's ajax() or get() methods we can make an async call to the ASP.NET MVC controller action, for instance like this:
function(){
$.get('<%=Url.Action("TitleToSlug", "Services", new { title = "Some title" }) %>', function (data) {
$('#SomeOtherTextbox).val(data);
});
}
What if we wanted t...
I am trying to use the JQuery cookie plugin in my project but I'm running into some trouble. Because I need to use the prototype library along with the JQuery library I used the JQuery.noConflict() method to assign $j as the JQuery alias. Unfortunately, even once I have loaded jquery.cookie.js into my page, $j.cookie('name','value') retu...
Right now my code looks like this:
<script type="text/javascript">
$(document).ready(function() {
$.ajaxSetup({
cache: false
});
var loadUrl = "<?php echo site_url("admin/get_uploads"); ?>";
$("#result").load(loadUrl);
var refreshId = setInterval(function() {
$("#r...
I'm coding a templating system that is supposed to support easily converting any old html/xhtml form into a format that can be used with my system (it's a template system for my cms).
Here's what I'm aiming for:
The user clicks a "Zone Define" button for example: "Content", "Sidebar", etc
When the user hovers any elements they become ...
The following code should allow to hide/show the CKEditor form
<a onClick="$('#form1').hide();">Hide</a>
<a onClick="$('#form1').show();">Show</a>
<form action="sample_posteddata.php" method="post" id="form1">
<textarea id="editor1" name="editor1">blabla</textarea>
<script type="text/javascript"> CKEDITOR.replace( 'editor1' ); <...
I am trying to initiate a function when a click event happens on a link within a list. This is for a menu.
Right now, I have this and it works:
$(".left-navigation-holder li a:has(~ul)").click(toggleMenu);
Basically, the click event initiate toggleMenu if the link clicked has a list (ul) down the tree. Now, I would also have this to ...